The time between two clock times
The calculator turns each time into seconds since midnight and subtracts. 9:00 AM to 5:30 PM is 17:30 minus 09:00, which is 8 hours 30 minutes. An unpaid break comes off the end: with a 30 minute break the answer is exactly 8 hours. If the two times are the same, the answer is 0. For a full 24 hours, add 1 in Extra whole days.
Across midnight and over several days
When the end time is earlier than the start, the end is counted as the next day. The working adds 24 hours to the end first: 6:00 AM becomes 30:00, and 30:00 minus 22:00 is 8 hours. For a span of more than a day, put the extra whole days in the box. 10:00 AM to 8:00 AM the next day is 22 hours, and with 1 extra day it is 46 hours, which the page also writes as 1 day and 22 hours.
Decimal hours for timesheets
Timesheets and invoices often want hours as a decimal, where 7.5 means 7 hours 30 minutes. To convert, divide the minutes by 60. The common ones are worth knowing:
- 6 minutes is 0.1 hours, 15 minutes is 0.25, 30 minutes is 0.5 and 45 minutes is 0.75.
- 20 minutes is 0.33 hours, from 20 ÷ 60 = 0.3333, rounded for display.
- 7 hours 20 minutes is 7.33, and not 7.20. A figure like 7.20 would mean 7 hours 12 minutes.
Decimal hours are kept as exact fractions and rounded once, when shown. The working uses ≈ when a figure is rounded, and the decimal places setting changes only the display. The one exception is a very small amount: it keeps enough digits to stay above 0, so one minute reads 0.017 hours even with 1 decimal place.
What clock arithmetic cannot know
This is plain clock arithmetic on a 24 hour day. It does not know about daylight saving time or time zones. Where clocks change, a shift from 10:00 PM to 6:00 AM really lasts 7 or 9 hours on the night of the change, not 8. If you need that precision, use the real start and end moments, or adjust the result by the hour the clocks moved.
For times in different places, convert both to the same time zone first, then subtract. To count whole days between dates instead, see the date difference calculator.