Time Duration Calculator
Enter a start and end date and time to get the exact elapsed duration — broken down into days, hours, minutes and seconds, plus a decimal total in hours and minutes. Overnight spans (an end time earlier in the clock than the start, on the next day) are handled correctly as long as the end date is set one day later. Everything runs in your browser; nothing is sent to a server.
About the time duration calculator
A time duration calculator finds the exact elapsed time between a start and end date/time — broken into days, hours, minutes and seconds, plus a decimal total. Set the end date one day later than the start to correctly handle an overnight span.
Working out "3 hours and 45 minutes" from "started at 9:15, finished at 1:00" in your head is easy to get slightly wrong, especially across a lunch break or past midnight. This calculator does the subtraction precisely: enter a start date/time and an end date/time, and it returns the exact gap in days, hours, minutes and seconds, along with a decimal-hours total useful for logging or billing.
When to use it
- Logging how long a task, meeting or work session actually took.
- Checking a delivery or travel window between two timestamps.
- Working out how long is left in an event that started at a known time.
- Cross-checking a timesheet entry someone else filled in.
How to use it
- Enter the start date and time.
- Enter the end date and time — set the end date a day later if the span crosses midnight.
- Read the result in days/hours/minutes/seconds, or use the decimal total for logging.
Tips
- If your result looks negative or huge, check whether the end date needs to be the next day.
- Use the decimal-hours total (e.g. 3.75) when pasting into a spreadsheet or invoice.
FAQ
How do I calculate the duration between two times?
Enter a start date and time, and an end date and time. The calculator subtracts one from the other and shows the result in days, hours, minutes and seconds.
Does this handle overnight spans, like 11pm to 6am?
Yes — enter the end date as the next day and the calculation is exact.