How to Find Elapsed Time Between Two Dates and Times

All guides › Calendars

Quick answer

Subtract the starting instant from the ending instant. Include both calendar dates and clock readings so intervals longer than a day are unambiguous.

Date and Time Duration Calculator

Step by step

  1. Write both dates and times, including AM or PM or a 24-hour time.
  2. If the UTC offsets differ, convert each timestamp to UTC using its own signed offset before subtracting.
  3. Report the duration in whole 24-hour days plus the remaining hours, minutes, and seconds. For calendar-date questions, use a date-only count instead.

Worked example

November 9 at 22:30 through November 11 at 06:15 in the same fixed offset is 31 hours 45 minutes, or 1 day 7 hours 45 minutes.

Compare dated timestamps in UTC

Assign an offset to each reading. UTC is the local date and time minus its signed offset. Once both values share UTC, subtract the start from the end to find actual elapsed time.

Worked examples and expected results
ScenarioInputsCalculationResult
Same offset across midnight2026-06-10 23:00 with offset 330 min to 2026-06-11 02:10 with offset 330 min2026-06-10 17:30 UTC to 2026-06-10 20:40 UTC3 h 10 min
Two offsets and different dates2026-06-10 23:30 with offset 330 min to 2026-06-11 01:00 with offset 120 min2026-06-10 18:00 UTC to 2026-06-10 23:00 UTC5 h 0 min
West of UTC2026-04-10 22:00 with offset -240 min to 2026-04-11 03:00 with offset -240 min2026-04-11 02:00 UTC to 2026-04-11 07:00 UTC5 h 0 min
A fractional-hour offset2026-07-07 09:00 with offset 345 min to 2026-07-07 07:30 with offset 180 min2026-07-07 03:15 UTC to 2026-07-07 04:30 UTC1 h 15 min
An interval of more than a date2026-01-01 02:00 with offset 0 min to 2026-01-03 03:30 with offset 0 min2026-01-01 02:00 UTC to 2026-01-03 03:30 UTC49 h 30 min
Identical instants with different local readings2026-01-10 12:00 with offset 120 min to 2026-01-10 10:00 with offset 0 min2026-01-10 10:00 UTC to 2026-01-10 10:00 UTC0 h 0 min

Same offset across midnight

Write each part of the input on its own line before doing the calculation. This makes it easier to compare your work with the setup and to find the first place where your answer differs.

Inputs
2026-06-10 23:00 with offset 330 min to 2026-06-11 02:10 with offset 330 min
Setup
Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date.
Calculation
2026-06-10 17:30 UTC to 2026-06-10 20:40 UTC
Result
3 h 10 min

Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

Two offsets and different dates

Try this case on your own using the method in the quick answer. Keep the original input in view while working. The intermediate calculation below gives you a checkpoint before you compare the final result.

Inputs
2026-06-10 23:30 with offset 330 min to 2026-06-11 01:00 with offset 120 min
Setup
Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date.
Calculation
2026-06-10 18:00 UTC to 2026-06-10 23:00 UTC
Result
5 h 0 min

Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

West of UTC

Make a rough estimate first, using the size of the numbers and the units shown. A result that is off by a factor of sixty or by a whole date is often easier to spot with an estimate beside it.

Inputs
2026-04-10 22:00 with offset -240 min to 2026-04-11 03:00 with offset -240 min
Setup
Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date.
Calculation
2026-04-11 02:00 UTC to 2026-04-11 07:00 UTC
Result
5 h 0 min

Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

A fractional-hour offset

Do this example independently. Copy the complete inputs, including any labels that determine the interpretation. Then use the setup to decide which operation comes first and what the final answer should describe.

Inputs
2026-07-07 09:00 with offset 345 min to 2026-07-07 07:30 with offset 180 min
Setup
Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date.
Calculation
2026-07-07 03:15 UTC to 2026-07-07 04:30 UTC
Result
1 h 15 min

Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

An interval of more than a date

Use this case to check what happens at a boundary or when changing formats. Write the intermediate value separately from the displayed answer so you can tell whether a discrepancy comes from the calculation or from the presentation.

Inputs
2026-01-01 02:00 with offset 0 min to 2026-01-03 03:30 with offset 0 min
Setup
Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date.
Calculation
2026-01-01 02:00 UTC to 2026-01-03 03:30 UTC
Result
49 h 30 min

Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

Identical instants with different local readings

Save the original values and repeat the calculation using a different representation if one is available. Compare the intermediate result before rounding or formatting so you know whether the two approaches agree.

Inputs
2026-01-10 12:00 with offset 120 min to 2026-01-10 10:00 with offset 0 min
Setup
Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date.
Calculation
2026-01-10 10:00 UTC to 2026-01-10 10:00 UTC
Result
0 h 0 min

Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

Steps to check against your own records

  • Same offset across midnight. Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.
  • Two offsets and different dates. Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.
  • West of UTC. Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.
  • A fractional-hour offset. Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.
  • An interval of more than a date. Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.
  • Identical instants with different local readings. Convert each reading independently. Subtract a positive offset or add the magnitude of a negative offset. Carry any change in the date. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

Try the examples before revealing the answers

  1. Same offset across midnight. 2026-06-10 23:00 with offset 330 min to 2026-06-11 02:10 with offset 330 min. Before revealing the answer, identify the unit you will work in and the unit you expect to report. Write your intermediate result alongside the original inputs.
    Check the result

    2026-06-10 17:30 UTC to 2026-06-10 20:40 UTC gives 3 h 10 min. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

  2. Two offsets and different dates. 2026-06-10 23:30 with offset 330 min to 2026-06-11 01:00 with offset 120 min. Before revealing the answer, identify the unit you will work in and the unit you expect to report. Write your intermediate result alongside the original inputs.
    Check the result

    2026-06-10 18:00 UTC to 2026-06-10 23:00 UTC gives 5 h 0 min. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

  3. West of UTC. 2026-04-10 22:00 with offset -240 min to 2026-04-11 03:00 with offset -240 min. Before revealing the answer, identify the unit you will work in and the unit you expect to report. Write your intermediate result alongside the original inputs.
    Check the result

    2026-04-11 02:00 UTC to 2026-04-11 07:00 UTC gives 5 h 0 min. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

  4. A fractional-hour offset. 2026-07-07 09:00 with offset 345 min to 2026-07-07 07:30 with offset 180 min. Before revealing the answer, identify the unit you will work in and the unit you expect to report. Write your intermediate result alongside the original inputs.
    Check the result

    2026-07-07 03:15 UTC to 2026-07-07 04:30 UTC gives 1 h 15 min. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

  5. An interval of more than a date. 2026-01-01 02:00 with offset 0 min to 2026-01-03 03:30 with offset 0 min. Before revealing the answer, identify the unit you will work in and the unit you expect to report. Write your intermediate result alongside the original inputs.
    Check the result

    2026-01-01 02:00 UTC to 2026-01-03 03:30 UTC gives 49 h 30 min. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

  6. Identical instants with different local readings. 2026-01-10 12:00 with offset 120 min to 2026-01-10 10:00 with offset 0 min. Before revealing the answer, identify the unit you will work in and the unit you expect to report. Write your intermediate result alongside the original inputs.
    Check the result

    2026-01-10 10:00 UTC to 2026-01-10 10:00 UTC gives 0 h 0 min. Use the UTC timestamps for the final check. When they fall on different dates, count the intervening date boundary before subtracting the times of day.

Troubleshooting and checks

Why do offset signs matter?

A local time ahead of UTC has a positive offset, so obtaining UTC requires subtracting. A timestamp at 10:00 with UTC+02:00 becomes 08:00 UTC. A westward offset such as UTC−03:30 requires adding three hours and thirty minutes to obtain UTC.

Can you leave both offsets blank?

Leaving both blank produces the same difference as entering equal offsets because the common amount cancels. Use explicit entries whenever the offsets differ. Leaving just one blank applies zero to that endpoint and can change the answer by hours.

What if the local readings look reversed?

A later event can show an earlier local clock when the readings come from different offsets. Compare the UTC values before deciding which event occurred first. If the UTC end really is earlier, review the original dates and which endpoint you entered as the start.

Calculation methodology · Report an error