Calcamaze

Time Duration Calculator

Find the exact time between two dates and times in days, hours, minutes and seconds.

Result

Duration
1 day 5 h 30 min
Total hours
29.5
Total minutes
1,770
Total seconds
106,200
Total days
1.2292

Work out exactly how long it is from one date and time to another — a flight, an exam, a project, a fast or a countdown to an event. Enter a start and an end, and get the duration in days, hours and minutes, plus the total in hours, minutes and seconds. It works across midnight, month ends and leap years.

What is a time duration?

A duration is the amount of time that passes between two moments, as opposed to a time of day. Durations are easy to get wrong by hand because they mix bases: 60 seconds in a minute, 60 minutes in an hour, 24 hours in a day, and months of different lengths. Converting both moments into one unit — minutes since a fixed starting point — and subtracting avoids all of that.

The international standard ISO 8601 writes durations as, for example, P1DT5H30M (1 day, 5 hours, 30 minutes). This calculator gives the same breakdown in plain words, and the totals in hours, minutes and seconds for timesheets, billing, travel or experiments. It measures clock time, so a daylight-saving change between the two moments shifts the real elapsed time by an hour.

How to use the time duration calculator

  1. Pick the start date and type the start time.
  2. Pick the end date and type the end time.
  3. Read the duration and the totals in hours, minutes and seconds.

Formula

Duration = (End date + End time) − (Start date + Start time)

Each date and time is turned into a single count of minutes, and the start is subtracted from the end. The result is then split into whole days (1,440 minutes), hours (60 minutes) and minutes.

The difference is clock time on the calendar. If clocks change for daylight saving between the two times, the real elapsed time is an hour more or less.

Worked examples

An overnight flight

Start date
2026-12-18
Start time
9:40 PM
End date
2026-12-19
End time
1:15 PM
Duration
15 h 35 min
Total hours
15.58
Total minutes
935

From 21:40 to midnight is 2 h 20 min, and from midnight to 13:15 is 13 h 15 min, so the total is 15 h 35 min, or 15.58 hours.

A week-long project

Start date
2026-11-02
Start time
8:00 AM
End date
2026-11-09
End time
5:30 PM
Duration
7 days 9 h 30 min
Total hours
177.5
Total minutes
10,650

Seven full days take it to 8:00 AM on 9 November, and 9 h 30 min more reaches 5:30 PM: 7 days 9 h 30 min, or 177.5 hours.

Same day, 24-hour times

Start date
2026-10-21
Start time
0915
End date
2026-10-21
End time
1642
Duration
7 h 27 min
Total hours
7.45
Total minutes
447

16:42 − 09:15 = 7 hours 27 minutes, which is 447 minutes or 26,820 seconds.

Time unit equivalents

DurationHoursMinutesSeconds
1 minute0.0167160
1 hour1603,600
1 day241,44086,400
1 week16810,080604,800
30 days72043,2002,592,000
365 days8,760525,60031,536,000

Across midnight

From 10:30 p.m. to 6:15 a.m. the next morning is 7 hours 45 minutes. Subtracting the clock times directly would give a negative number, which is why the calculator works with full dates and times.

Common mistakes

  • Subtracting minutes larger than the start minutes without borrowing an hour: 14:10 − 09:45 is 4 h 25 min, not 5 h −35 min.
  • Treating decimal hours as hours and minutes — 15.58 hours is 15 h 35 min, not 15 h 58 min.
  • Forgetting a daylight-saving change. If clocks spring forward overnight, the real elapsed time is one hour shorter than the clock difference.
  • Mixing AM and PM: 12:30 AM is just after midnight, 12:30 PM is just after noon.

Frequently asked questions

How do I calculate the time between two times on different days?

Count the full days between the dates, multiply by 24 hours, then add the end time and subtract the start time. From 9:15 AM Monday to 2:45 PM Tuesday is 1 day 5 h 30 min, or 29.5 hours.

Does it account for daylight saving time?

No — it gives the difference in clock time. If the clocks go forward an hour between the two times, the real elapsed time is one hour less; if they go back, it is one hour more.

What if I only need hours between two times on the same day?

Use the same date for both, or use the hours calculator, which also takes off breaks and handles night shifts.

Sources

  1. ISO 8601 — Date and time format, International Organization for Standardization (ISO)
  2. Time and Frequency from A to Z, National Institute of Standards and Technology (NIST)

Last updated · Calculations checked by automated tests· Editorial policy