Time Duration Calculator

A time duration calculator finds the exact elapsed span between two clock readings or two dated moments. Enter times alone for same-day or overnight work, or add both dates to measure a longer signed interval. Every answer appears as days, hours, minutes, seconds, and decimal values.

Time duration calculator — two points in, span out

Dates are optional as a pair · times accept h:mm or h:mm:ss · choose AM, PM, or 24h

Start point

End point

Clear both dates to use next-midnight clock logic. Keep both dates filled for a signed multi-day result.

ELAPSED DURATION

2 days, 08:15:00

2 dated days plus an 8 h 15 m clock difference · positive signed span

DAYS, HH:MM:SS
2 days, 08:15:00
DECIMAL DAYS
2.34375
DECIMAL HOURS
56.25
TOTAL MINUTES
3,375
TOTAL SECONDS
202,500
Show calculation steps
Start clock
33,300 s after midnight
End clock
63,000 s after midnight
Date span
2 days × 86,400 s
Signed total
202,500 s
Carry back up
202,500 s = 2d 8h 15m 0s → 2 days, 08:15:00

HOW IT WORKS

How the duration is calculated

FIG. 1 — 24 H FRAME

From 09:15 to 17:30, the highlighted span covers 8 hours 15 minutes within one 24-hour frame.

Time duration calculator formula

clock seconds = 3,600 × hour + 60 × minute + second

Clock normalization with explicit dates

Each clock reading becomes an integer offset from midnight, preventing decimal-minute errors.

Dates supplied

span = date days × 86,400 + end clock − start clock

The date difference stays signed, so a genuinely earlier ending point remains negative.

Clock-only rollover and result conversion

Dates omitted

end < start ? end + 86,400 − start : end − start

An earlier ending clock means one midnight was crossed, not an unknown number of days.

Display conversion

days → hours → minutes → seconds, carrying at 24 / 60 / 60

The exact second total drives every displayed format; intermediate results are never rounded.

Why dated and undated inputs differ

The time duration calculator uses two distinct rules because an undated clock pair is ambiguous. With no dates, 10:00 PM to 2:00 AM conventionally means the next midnight. With explicit dates, the calendar controls the sign and length. That distinction lets the page cover the duration between two times without inventing extra days.

Civil date arithmetic here treats every calendar day as 86,400 seconds. It does not apply a timezone or daylight-saving transition to dated inputs. That makes the calculation deterministic for schedules and recorded clock values. If your task starts from the visitor's current device time instead, the hours from now calculator displays a local result and a UTC equivalent.

Measuring time between two points, step by step

03 STEPS
  1. 01

    Enter the start

    Type the starting clock as h:mm or h:mm:ss and choose AM, PM, or 24h. Add a YYYY-MM-DD date if the interval needs calendar context.

  2. 02

    Enter a matching end

    Use the ending clock in the same way. Supply both dates or neither date; one date alone cannot define a consistent time between two dates.

  3. 03

    Read, inspect, and copy

    The time duration calculator updates after 150 milliseconds. Open the steps, copy one format, export CSV, or share a fragment link that restores the inputs.

Need to add 2 hours 30 minutes to another duration instead of subtracting two points? Use the Time Calculator. This page intentionally does not perform duration-plus-duration arithmetic.

Duration examples

INPUT → RESULT
  • Time duration calculator: dated example

    Jul 29, 2026 9:15 AM → Jul 31, 2026 5:30 PM
    = 2 days + 8 h 15 m
    = 2 days, 08:15:00

    The same span is 2.34375 decimal days, 56.25 decimal hours, 3,375 minutes, or 202,500 seconds.

  • One midnight, no dates

    11:20 PM → 1:05 AM
    = 6,300 seconds
    = 01:45:00

    Because the end clock is earlier, one day is added automatically and the crossing-midnight note appears.

  • Two weeks and a clock offset

    Jul 1, 2026 12:00 PM → Jul 15, 2026 3:30 PM
    = 14 days, 03:30:00
    = 339.5 hours

    Dates remove the one-midnight limit and make long elapsed spans explicit.

  • An intentionally negative span

    Aug 3, 2026 3:00 PM → Aug 2, 2026 10:00 AM
    = −1 day, 05:00:00
    = −29 hours

    The negative sign is useful evidence that the points may have been entered in reverse.

Midnight, dates and negative spans

CHECK BEFORE USE
  • Only one date entered

    The page stops and asks for the matching date. It never combines a dated point with an assumed same-day clock point.

  • Identical clocks

    Without dates, 8:00 AM to 8:00 AM is zero, not 24 hours. Add consecutive dates when a full day is intended.

  • 24:00 input

    In 24-hour mode, 24:00 is accepted as the boundary at the end of a day. Values such as 24:15 are rejected.

  • Calendar days, not workdays

    Every dated day counts here. For a due date that skips Saturday, Sunday, and dates you exclude, use the lead time calculator.

Seconds are optional, but they remain exact when supplied. The decimal views are derived only after the integer-second subtraction: 30 seconds becomes 0.5 total minutes and 0.0083 decimal hours at display precision. The time duration calculator does not apply payroll rounding, rate calculations, break deductions, or a business-day calendar. Those are separate decisions from measuring elapsed time.

When dates are blank, the page can infer at most one midnight. A clock-only pair cannot tell whether a meeting lasted two hours, twenty-six hours, or several days plus two hours. Enter both dates whenever more than one rollover is possible. For current-time offsets such as “what time is 36 hours later,” use Hours From Now; for delivery planning, move to the workday-aware tool.

Sources and standards

REFERENCE NOTES

NIST guidance explains why this page treats noon and midnight labels carefully and supports 24-hour input.

“This is a tricky question because 12 a.m. and 12 p.m. are ambiguous and should not be used.”

National Institute of Standards and Technology, Times of Day FAQs

Time duration questions

TAP TO OPEN
What is the difference between finding duration and adding time?

Finding duration subtracts one point from another. Adding time combines two durations, such as 2 hours plus 45 minutes, without asking when either one happened. This time duration calculator is for two clock points or two dated points. For duration plus or minus duration arithmetic, use the main Time Calculator.

How does the calculator handle a time that crosses midnight?

Leave both date fields empty. If the ending clock is earlier than the starting clock, the end is treated as the next day. For example, 11:20 PM to 1:05 AM is 1 hour 45 minutes, and the result note states that midnight was crossed.

Can I compare two dates that are weeks apart?

Yes. Enter both dates as YYYY-MM-DD and add a clock time to each one. The date difference supplies whole 86,400-second days, then the ending clock offset is subtracted from the starting clock offset. A span of weeks is returned in days, HH:MM:SS and all four numeric formats.

Why can the time duration calculator show a negative result?

With explicit dates, subtraction remains signed. If the ending date and time is earlier than the starting point, the total is negative instead of being silently pushed into a later day. Reverse the two points if you intended a positive elapsed span.

Which decimal output should I use for a timesheet?

Decimal hours are usually the useful reading: 8 hours 15 minutes is 8.25 hours because 15 divided by 60 is 0.25. Confirm the rounding policy required by your employer or payroll process; this page reports from exact seconds and does not apply a payroll rounding rule.

Do I have to enter dates for a same-day duration?

No. Leave both dates empty for simple clock-to-clock work. Dates are optional as a pair, so entering only one date produces an input message rather than mixing dated and undated assumptions. Add both dates whenever the interval can cover more than one midnight.

Reviewed by the TimeCalculator.dev team · Published · Updated