Skip to content
SmartDailyCalculator

Time Duration Calculator

Enter a start and end date and time to find how long there is between them.

Result

Calculating…

How to use the Time Duration Calculator

  1. Enter the start date and start time.
  2. Enter the end date and end time.
  3. Read the duration in days, hours and minutes, and as total hours, minutes, seconds and days.

Time duration formula

Duration=24h×days between dates+(end time−start time)
Show as plain text

Duration = (end date − start date) × 24 h + (end time − start time)

The calculator counts whole calendar days between the two dates, converts them to minutes, then adds the difference between the two clock times.

The total is then broken back down into days (1,440 minutes each), hours and minutes.

Assumptions and limitations

  • Both times are in the same time zone.
  • Every day is treated as exactly 24 hours, so a span that crosses a daylight-saving change may be one hour off the real elapsed time.
  • Times are entered to the minute; seconds are assumed to be zero.

Example: From 9:00 AM on March 3 to 5:30 PM on March 5

  1. Whole days between the dates: 2 days = 2,880 minutes.
  2. Time difference: 17:30 − 09:00 = 8 hours 30 minutes = 510 minutes.
  3. Total: 2,880 + 510 = 3,390 minutes, which is 2 days, 8 hours, 30 minutes (56.5 hours).

When to use the Time Duration Calculator

  • Measuring how long a trip, an event or a machine run lasted across several days.
  • Converting a duration into decimal hours for billing.
  • Working out the exact length of a period in hours when the date calculator only needs whole days.

Time Duration Calculator FAQs

How do I calculate a duration that crosses midnight?

Set the end date to the following day. For example, 10:00 PM on Monday to 6:00 AM on Tuesday is 8 hours.

Why might the result be an hour off around a daylight saving change?

The calculator treats every day as exactly 24 hours. On the night clocks go forward, the real elapsed time is one hour shorter than shown, and on the night they go back it is one hour longer. Adjust by an hour if your span crosses a change.

Does it work for spans of several weeks or months?

Yes. Enter any two dates and times and the result is given in days, hours and minutes, with totals in hours, minutes and seconds. If you only need whole days or a count of weekdays, the date calculator is simpler.

How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.