Worked example
A shift from 8:45 AM to 5:15 PM with a 30-minute unpaid lunch: 17:15 − 8:45 = 8 h 30 min, less the break = 8 h (8:00, or 8.00 decimal hours). A night shift from 10:00 PM to 6:30 AM with a 45-minute break crosses midnight: 2 hours to midnight plus 6 hours 30 minutes after = 8 h 30 min, less 45 minutes = 7 h 45 min (7.75 hours).
Minutes to decimal hours
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 5 | 0.08 | 35 | 0.58 |
| 10 | 0.17 | 40 | 0.67 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.33 | 50 | 0.83 |
| 25 | 0.42 | 55 | 0.92 |
| 30 | 0.50 |
Payroll often rounds to the nearest quarter hour (0.25). The US Department of Labor allows rounding to the nearest 5, 10 or 15 minutes only if it evens out over time and doesn’t always favour the employer.
Common mistakes with time sums
- Treating 1:30 as 1.3 hours. One hour thirty is 1.5 hours; 1.3 hours is 1 hour 18 minutes.
- Subtracting across midnight on a normal calculator gives a negative number; add 24 hours to fix it.
- Mixing 12-hour times without AM or PM. “From 9 to 5” is 8 hours only if the 5 is PM. When you leave AM/PM off, a number from 1 to 24 is read as the 24-hour clock.
- Daylight saving changes: on the night the clocks go forward a night shift is an hour shorter, and an hour longer when they go back. The calculator works from clock times, so adjust by an hour on those two nights.
Need a full weekly timesheet with pay and overtime? The time card calculator handles a whole week. For the 24-hour clock itself, see the military time converter.
Hours for pay, travel and study
For pay, decimal hours make the sum simple: 37 hours 30 minutes at $18.50 an hour is 37.5 × 18.50 = $693.75. For overtime, work out the hours for each day first, then add them up for the week, because overtime rules in the US (over 40 hours a week) and many UK contracts look at the weekly total. For travel, a flight leaving at 22:40 and landing at 06:15 local time crosses midnight, but if it also crosses time zones you need to convert both times to the same zone first. For study logs and freelance tracking, add each session as a line in the durations list and keep a running total for the week or the project.
Related tools
- Week number
- Day of the week calculator
- Online timer and stopwatch
- Pomodoro timer
- Days between dates
- Time card calculator
- Military time converter
Sources
Checked on November 26, 2026:
Frequently asked questions
How do I calculate hours between two times?
What if the shift goes past midnight?
How do I turn minutes into decimal hours?
Can I type times in 24-hour format?
How do I add up hours and minutes?
Is my timesheet stored?
Last updated: 2026-11-26