Dates & time
Duration between two times
Calculates the time between a start and an end time, in hours, minutes and seconds and as decimal hours. End times after midnight are handled.
Duration
—
How to use this tool
Set a start time and an end time, to the second if you need it. The duration appears as HH:MM:SS, followed by the same span in decimal hours, in minutes and in seconds. Decimal hours are what a timesheet or an invoice needs: 8 hours 30 minutes is 8.5 hours, whereas 8.30 would mean 8 hours 18 minutes. If the end time is earlier than the start time, the tool assumes the period runs past midnight and adds 24 hours: 22:00 to 06:00 gives 8 hours. Ticking End time on next day always adds 24 hours, which covers a period longer than a day, for example 09:00 to 17:30 the next day, 32 hours 30 minutes. The tool compares two clock times only. It does not subtract breaks and cannot cover 48 hours or more.
Concrete examples
- 09:00:00 → 17:30:00 = 08:30:00, or 8.5 hours, 510 minutes, 30,600 seconds
- 22:00:00 → 06:00:00 = 08:00:00 (the end is read as the next day)
- 08:15:30 → 12:40:10 = 04:24:40, or 4.41 hours
- 23:30:00 → 00:15:00 = 00:45:00, or 0.75 hours
- 09:00:00 → 17:30:00 with End time on next day ticked = 32:30:00
Frequently asked questions
- How do I convert hours and minutes to decimal hours?
- Divide the minutes by 60 and add them to the hours. 7 h 45 min is 7 + 45 ÷ 60 = 7.75 hours, and 20 minutes is 0.33 hours. The tool does this for you and rounds to two decimals. Multiply the decimal figure by an hourly rate to get an amount: 7.75 hours at 40 per hour is 310.
- How do I calculate a night shift that ends after midnight?
- Enter the two times as they are. When the end is earlier than the start, the tool adds 24 hours on its own: 21:45 to 05:15 gives 07:30:00. The End time on next day box is only needed when the end time is later on the clock than the start, as in 08:00 to 10:00 the following day, which is 26 hours.
- Can I deduct a lunch break?
- Not directly. Calculate the full span and subtract the break yourself, or work in two parts: 08:30 to 12:15 is 3.75 hours and 13:00 to 17:00 is 4 hours, 7.75 hours in total. Adding decimal hours is less error-prone than adding hours and minutes.
- Does it handle several days?
- Only up to a point. With End time on next day ticked, the result can reach 47 hours 59 minutes 59 seconds. For a span of several days, count the days with a date calculator, multiply by 24 and add the hours found here.