Working out a duration
Type the start time
Use the 24-hour clock (
09:15), a full stop instead of a colon (9.15) or am and pm (9:15am). All three mean the same thing.Type the finish time
If the finish is earlier on the clock than the start, the calculator assumes the job ended the next day and says Overnight: Yes.
Take off the break
Enter the unpaid break in minutes, or 0 for none. The break comes off the total; a break longer than the whole span leaves zero rather than a negative time.
Example: pricing an office clean that runs overnight
A contract cleaning firm is quoting a business park unit that wants cleaners in after the staff have gone. The team arrives at 22:00, leaves at 06:30 and takes a 45 minute break that is not paid.
The calculator treats 06:30 as the following morning and returns 7 hours 45 minutes of paid time, or 7.75 hours. Multiplying 7.75 by the hourly cost per cleaner gives the labour figure for one night, which is the number the quote is built on.
Start 22:00, end 06:30, break 45
Duration 7 h 45 min Decimal hours 7.75 Minutes 465 Overnight Yes, ends the next day
Where people go wrong doing this in their head
Subtracting clock times only works cleanly when the minutes on the finish time are larger. From 8:40am to 1:15pm you cannot take 40 from 15, so you borrow an hour: the answer is 4 hours 35 minutes, not 5 hours 25. The calculator does the borrowing for you.
The second trap is decimals. Seven hours forty-five minutes is 7.75 hours, because 45 minutes is three quarters of an hour. Writing 7.45 on a timesheet pays for 27 minutes instead of 45. The time to decimal converter has a table of common minute values.
Questions people ask
How do I calculate hours worked between two times?
Take the finish time away from the start time, then subtract any unpaid break. For 09:15 to 17:45 with a 30 minute lunch the answer is 8 hours exactly. Enter the three values above and the tool shows the result in hours and minutes, decimal hours and minutes.
Does it work for shifts that finish after midnight?
Yes. Whenever the end time is earlier than the start time it is taken as the next day, so 22:00 to 06:30 is 8 hours 30 minutes before any break. Shifts longer than 24 hours are not supported, because a clock time alone cannot say how many days passed.
Can I enter times with am and pm?
Yes, for example 8:40am and 1:15pm, or 9am without minutes. Without am or pm the time is read on the 24-hour clock, so 1:15 means a quarter past one in the early morning. If a value cannot be read, the tool asks you to use a format such as 09:15.
Where your data goes
Start, finish and break values are worked out by code already loaded on this page. They never leave your browser.
Checked against the tool on