Time Duration Calculator
Find the exact time between two dates or times — hours, minutes, seconds and decimal hours.
Formula: duration = end time − start time. If the end time is earlier than the start time on the same day, the result is negative — pick the next day for overnight spans.
How to use the time duration calculator
- Enter the start date and time.
- Enter the end date and time.
- Press “Calculate Duration” to see the gap in days, hours, minutes and seconds.
Time duration calculation example
- 9:15 am to 5:40 pm = 8 h 25 min (8.42 h).
- 10:00 pm to 6:30 am the next day = 8 h 30 min.
- 1 March 08:00 to 3 March 20:00 = 2 days 12 hours (60 hours).
Tips for using the time duration calculator
- For durations across dates, include the dates, not just the times.
- Daylight-saving changes add or remove an hour in countries that use it; Pakistan does not currently use DST.
Time duration calculator: common questions
- How is the duration worked out?
- The end time minus the start time, broken into days, hours, minutes and seconds, plus the total in decimal hours.
- Can I measure an overnight span?
- Yes. Pick the end date as the next day — for example 21:00 to 02:00 the next morning gives 5 hours.
- Is my data stored?
- No. The calculation runs in your browser.
- How do I convert the result to decimal hours?
- Divide the minutes by 60 and add them to the hours: 25 min = 0.42 h.