CALCULATOR WORKSPACE
DATE & TIME / CALCULATOR

Time Duration Calculator

Find elapsed days, hours and minutes between two UTC timestamps.

YOUR INPUTS

Calculate Time Duration

01 / 02
Enter as YYYY-MM-DD or choose from the calendar.
Example: 22:30.
Enter as YYYY-MM-DD or choose from the calendar.
Example: 01:15.
YOUR ANSWER

Results

02 / 02
=

Your result will appear here

Enter values above, then select Calculate result. Your inputs stay in this browser.

THE BASICS

Measuring elapsed hours and minutes between two exact moments

Elapsed time subtracts two complete UTC timestamps at minute precision. It answers an hours-and-minutes question that calendar-day difference cannot answer, including events that pass midnight.

A timestamp contains both a date and a clock time. Subtracting two UTC timestamps gives elapsed minutes, which are then grouped into whole 24-hour days, remaining hours and minutes. This can describe an overnight shift without assuming that the end clock time belongs to the starting date.

Complete UTC timestamps handle crossing midnight. The result shows total minutes and a day/hour/minute breakdown with timezone and daylight-saving assumptions plainly stated.

YOUR INPUTS

How the UTC start and end dates and times produce the duration

A duration here is the gap between two complete timestamps. With the dates and UTC conversion right, the arithmetic is straightforward.

Start date and time
The moment the interval begins, entered as a UTC date and a 24-hour time from 00:00 to 23:59. Seconds are not accepted, so a start at 09:00:40 has to be rounded to a whole minute first. A shift from 09:00 to 17:30 on the same date is 510 minutes, shown as 8.50 total hours.
End date and time
The moment the interval ends, which must be the same as or later than the start. For an overnight interval, give the end the next calendar date: 22:30 on October 1 to 01:15 on October 1 is rejected, while ending on October 2 gives 2 hours 45 minutes. Midnight at the end of a day is entered as 00:00 on the following date, because 24:00 is not accepted.
Converting local time to UTC
Both timestamps must already be in UTC, each converted with the offset in force on its own date. A London night shift from 22:00 on October 24, 2026 to 06:00 on October 25 crosses the end of British Summer Time, so it becomes 21:00 to 06:00 UTC and lasts 9 hours, not 8. The Time Zone Converter can do each conversion with UTC as the destination.
Days, hours and minutes breakdown
Total minutes are split into 1,440-minute days, then hours and minutes. October 1 at 08:00 to October 8 at 09:30 is 10,170 minutes, shown as 7d 1h 30m and 169.50 total hours. Total hours are rounded to two decimals, so use the minute total when converting time into pay or billing units.

Steps

  1. Enter both dates and 24-hour times in UTC.
  2. Make sure the ending timestamp is the same or later than the start.
  3. Read the total minutes and the breakdown into whole days, remaining hours and minutes.

Reading tip: Convert each local timestamp to UTC using the offset in force on its own date before entering it. The breakdown is elapsed time, not a calendar-age style count.

PRACTICAL USES

Timing questions that need minutes, not just dates

01

Measure an overnight shift

Calculate an elapsed interval even when the end clock time is smaller on the next date.

02

Check logged events

Compare two UTC date-and-time records at whole-minute precision.

03

Convert a long interval

Read the same elapsed total as minutes and as whole days plus remaining time.

04

Avoid timezone ambiguity

Use explicit UTC timestamps when local daylight-saving labels could be misleading.

THE METHOD

How the calculation works

FormulaAt a glance
Elapsed minutes=end UTC timestamp − start UTC timestamp60,000 milliseconds
Where:
start / end
Two complete UTC date-and-24-hour-time values at minute precision.
60,000
Milliseconds per minute, used to convert the timestamp difference.
1,440
Minutes in one elapsed 24-hour day for the result breakdown.
mod / floor
Remainder after whole blocks / round down to completed blocks.
COMPLETE FORMULA & VARIATIONS
Elapsed minutes T = (end UTC timestamp − start UTC timestamp) / 60,000
Whole days = floor(T/1,440); remainder = T mod 1,440
Hours = floor(remainder/60); minutes = remainder mod 60

The calculator does not convert local timezone offsets. Both entered clock times must already refer to UTC.

What every part means

start / end
Two complete UTC date-and-24-hour-time values at minute precision.
60,000
Milliseconds per minute, used to convert the timestamp difference.
1,440
Minutes in one elapsed 24-hour day for the result breakdown.
mod / floor
Remainder after whole blocks / round down to completed blocks.

Calculate it step by step

1. UTC timestamps
start = UTC date + start HH:MM; end = UTC date + end HH:MM

Both 24-hour times use the same UTC timezone and minute precision.

2. Elapsed minutes
T = (end timestamp − start timestamp) / 60,000 ms

Reject an end earlier than the start.

3. Breakdown
days = floor(T/1440); hours = floor((T mod 1440)/60); minutes = T mod 60

A whole day means 24 elapsed hours, independent of local daylight-saving labels.

The engine uses UTC date milliseconds plus entered clock minutes. October 1 at 22:30 through October 2 at 01:15 totals 165 minutes, or 2 hours 45 minutes.

WORKED EXAMPLE

See it in practice

01 Sample inputs
Start date in UTC
2026-10-01
Start time in UTC
22:30
End date in UTC
2026-10-02
End time in UTC
01:15
02 Put values into the formula

October 1, 2026 at 22:30 UTC to October 2 at 01:15 UTC: 165 elapsed minutes = 0 whole days + 2 hours + 45 minutes.

03 Verified result0d 2h 45mElapsed duration
  • Total minutes165
  • Total hours2.75
GOOD TO KNOW

Interpretation & limitations

How to read your result

Use the total-minute fact for exact arithmetic and the day/hour/minute presentation for human reading. A zero-duration pair is allowed.

Where this estimate stops

Local timezone selection and daylight-saving conversion are outside this tool. A local interval across a clock change requires both endpoints converted to UTC first; seconds are not accepted.

COMMON QUESTIONS

Frequently asked questions

01Does the tool handle an overnight interval?

Yes. Use the next calendar date for the end timestamp; 22:30 to 01:15 next day is 2 hours 45 minutes.

02What about daylight-saving time?

Both inputs are treated as UTC. Convert local times to UTC using their correct date-specific offsets before entering them.

03Can the end clock time be smaller?

Yes, if the end date is later, as in an overnight interval.

04Does one day mean one calendar date crossed?

No. It means 1,440 elapsed minutes, which can differ from a local-day label during clock changes.

05Are seconds counted?

No. Inputs and results have whole-minute precision.

06Can I enter a local timezone?

No. Enter UTC times after converting local dates and offsets outside the tool.

KEEP EXPLORING

Related calculators