Time duration calculator
Calculator
The calculator needs JavaScript. The tables below give the same numbers for common cases.
How it is worked out
- If the end time is earlier than the start, the span runs past midnight (1,440 minutes are added).
- Duration = end − start − break = 480 minutes = 8 hours.
| Inputs | Answer |
|---|---|
| Start time: 09:15; End time: 17:45; Unpaid break: 30 | From 09:15 to 17:45 with a 30 minute break is 8 h 00 min (8 hours). |
| Start time: 22:00; End time: 06:00; Unpaid break: 0 | From 22:00 to 06:00 is 8 h 00 min (8 hours). |
| Start time: 08:00; End time: 16:30; Unpaid break: 45 | From 08:00 to 16:30 with a 45 minute break is 7 h 45 min (7.75 hours). |
How to use it
The duration is the end time minus the start time minus any unpaid break. If the end time is earlier than the start, the shift runs past midnight and 24 hours are added, so 22:00 to 06:00 is 8 hours. The result is also given in decimal hours, which is what payroll usually needs.
For a whole week of shifts use the time card calculator.
Frequently asked questions
How do I calculate hours between two times?
Subtract the start time from the end time.
What about overnight shifts?
If the end is earlier than the start, the span crosses midnight.
How do I convert minutes to decimal hours?
Divide the minutes by 60: 45 minutes is 0.75 hours.
Method: standard arithmetic shown step by step; no outside data is used. Checked 2026-11-12.
About · How we verify this · Editorial policy · Corrections
General information only. Results are plain arithmetic on the numbers you enter; check anything important (money, health, school work) against your own records or the official source.