Overview
How long was that shift, meeting or flight? Enter the start and end times and any break to get the duration in hours, minutes and decimal hours.
If the end time is earlier than the start, the calculator assumes it is the next day.
Worked examples
| Inputs | Result |
|---|---|
| Start: hour (0-23)9Start: minute (0-59)0End: hour (0-23)17End: minute (0-59)30Break (minutes)30 | Duration: 8 h 0 minDecimal hours: 8Total minutes: 480 |
Show 2 more examples
| Start: hour (0-23)7Start: minute (0-59)45End: hour (0-23)16End: minute (0-59)15Break (minutes)45 | Duration: 7 h 45 minDecimal hours: 7.75Total minutes: 465 |
| Start: hour (0-23)23Start: minute (0-59)30End: hour (0-23)7End: minute (0-59)0Break (minutes)20 | Duration: 7 h 10 minDecimal hours: 7.17Total minutes: 430The end time is on the next day (overnight). |
Duration by end: hour
With the calculator's starting values, the duration is 8 h 0 min. The table shows how it changes with the end: hour.
| End: hour (0-23) | Duration (hours) |
|---|---|
| 9 | 0 h 0 min |
| 12 | 3 h 0 min |
| 15 | 6 h 0 min |
| 17starting value | 8 h 0 min |
| 18 | 9 h 0 min |
| 21 | 12 h 0 min |
Other inputs: Start: hour: 9 0-23 · Start: minute: 0 0-59 · End: minute: 30 0-59 · Break: 30 minutes. Change them in the calculator above for your own numbers.
How it works
Times are converted to minutes since midnight and subtracted. If the result is negative, 24 hours are added (an overnight shift). The break is then subtracted.
The formula
| Break | Unpaid minutes to subtract |
Practical tips
- 09:00 to 17:30 with a 30-minute break is 8 hours.
- 22:00 to 06:15 is 8 h 15 min, or 8.25 decimal hours.
- Decimal hours are what most payroll systems need.
Frequently asked questions
How do I convert minutes to decimal hours?
Divide by 60: 15 minutes is 0.25 hours.
Does it handle shifts over 24 hours?
No, it assumes the end is within 24 hours of the start.