If the end time is earlier than the start, it's counted as the next day (an overnight shift).

Duration 8 hr 15 min 8.25 hours · 495 minutes

Need a whole week of shifts? Use the time card calculator. Your entries are saved in this browser only.

How to calculate time between two times

  1. Convert both times to minutes after midnight (hours × 60 + minutes), using a 24-hour clock. 5:15 PM is 17:15, or 1,035 minutes.
  2. Subtract the start from the end. If the result is negative, the time crossed midnight, so add 24 hours (1,440 minutes).
  3. Subtract any unpaid break.
  4. Divide by 60 for hours; the remainder is minutes.

Worked example

A shift from 8:30 AM to 5:15 PM is 8 hours and 45 minutes. Taking out a 30-minute lunch leaves 8 hours 15 minutes, or 8.25 decimal hours (495 minutes). An overnight shift from 10:00 PM to 6:30 AM is 8 hours 30 minutes.

Hours and minutes vs. decimal hours

Payroll usually needs decimal hours: 8 hours 15 minutes is 8.25 hours, not 8.15. To convert, divide the minutes by 60:

  • 15 minutes = 0.25 hours
  • 30 minutes = 0.5 hours
  • 45 minutes = 0.75 hours
  • 20 minutes ≈ 0.33 hours

Multiply decimal hours by your hourly rate to find your pay for the shift. For example, 8.25 hours at $20 an hour is $165.

Rounding time for payroll

Some employers round punches to the nearest 5, 6, or 15 minutes. Under federal rules, rounding has to be neutral over time, so it can't always favor the employer. If your pay stub doesn't match your own math, rounding is a common reason; ask how your employer rounds.

Frequently asked questions

Can it handle shifts longer than 24 hours?

No. With only two clock times, the calculator assumes the span is under 24 hours. For multi-day spans, use the days between dates calculator and add the hours.

What about daylight saving time?

On the night clocks change, an overnight shift is really an hour longer or shorter than the clock times suggest. Add or subtract that hour yourself. Results are based on the times you enter.