Skip to content
DEVELOGCALC

Time Card Calculator

Enter in and out times for each shift, subtract unpaid breaks, and get the week’s total in hours:minutes and decimal hours for payroll.

Try:
Shifts

Out earlier than in means the shift ended after midnight. Leave break empty for none.

Result

Total hours worked: 38 h 30 min

Total hours worked

Decimal hours
38.5
Hours:minutes
38:30
Total minutes
2,310
DayInOutBreakHoursDecimal
Mon8:30 AM5:00 PM30 min8:008
Tue8:30 AM5:15 PM30 min8:158.25
Wed9:00 AM5:30 PM45 min7:457.75
Thu8:15 AM4:45 PM30 min8:008
Fri8:30 AM3:00 PM0 min6:306.5
Total38:3038.5
Calculation steps
  1. Each row: (out − in) − break; an out time earlier than the in time counts as the next day
  2. Sum = 2310 minutes = 38:30
  3. 2310 ÷ 60 = 38.5 → 38.5 decimal hours

Calculations run in your browser. Your inputs are not sent to our server.

Formula

  • Shift minutes = (Out − In) − Break
  • If Out < In, add 24 hours
  • Decimal hours = Total minutes ÷ 60

How it works

Every shift is converted to minutes after midnight. When the out time is earlier than the in time the shift is treated as ending the next day, so a 10 PM to 6 AM night shift counts 8 hours instead of a negative number. The unpaid break for that row is subtracted, and every row is added in whole minutes before anything is rounded.

Only the final total is converted to decimal hours and rounded to two places, which is the format most payroll systems and invoices expect. Rounding each day first and then adding can drift by a few hundredths over a week.

Worked examples

A standard five-day week

Five shifts with lunch breaks of 0–45 minutes add up to 38 hours 30 minutes, or 38.5 decimal hours.

Shifts
5 rows
Total hours worked
38 h 30 min

Two night shifts with pay

Both shifts cross midnight. 8 h + 7 h 45 min = 15.75 hours; at $19.00 an hour that is $299.25 before taxes.

Shifts
2 rows
Also calculate pay
Yes
Hourly rate
$19
Total hours worked
15 h 45 min

Minutes to decimal hours

Payroll uses decimal hours, not clock minutes. Divide minutes by 60: 8 hours 15 minutes is 8.25 hours, not 8.15. Entering 8.15 would underpay the shift by six minutes.

  • 5 min = 0.08 h
  • 10 min = 0.17 h
  • 15 min = 0.25 h
  • 20 min = 0.33 h
  • 30 min = 0.50 h
  • 40 min = 0.67 h
  • 45 min = 0.75 h
  • 50 min = 0.83 h

Breaks and rounding rules

Enter only unpaid breaks. Under the U.S. Fair Labor Standards Act, short rest breaks (usually 5–20 minutes) are generally paid time, while bona fide meal periods of 30 minutes or more can be unpaid if the employee is fully relieved of duty.

Some employers round punches to the nearest 5, 6, or 15 minutes. This calculator uses the exact minutes you enter; if your employer rounds, enter the rounded punch times.

What this calculator does not do

The optional pay line multiplies all hours by one rate. It does not apply overtime, taxes, or deductions. For time-and-a-half on hours over 40, use the overtime calculator with the total from this card.

Common questions

How do I enter a shift that ends after midnight?

Enter the real out time, for example 06:30. Because it is earlier than the in time, the calculator adds a day automatically.

Can I use it for two weeks?

Yes. Add up to 31 rows, one per shift, and the total covers all of them.

Last reviewed: