Dates supplied
span = date days × 86,400 + end clock − start clock
The date difference stays signed, so a genuinely earlier ending point remains negative.
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
HOW IT WORKS
FIG. 1 — 24 H FRAME
clock seconds = 3,600 × hour + 60 × minute + second
Each clock reading becomes an integer offset from midnight, preventing decimal-minute errors.
span = date days × 86,400 + end clock − start clock
The date difference stays signed, so a genuinely earlier ending point remains negative.
end < start ? end + 86,400 − start : end − start
An earlier ending clock means one midnight was crossed, not an unknown number of days.
days → hours → minutes → seconds, carrying at 24 / 60 / 60
The exact second total drives every displayed format; intermediate results are never rounded.
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.
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.
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.
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.
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.
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.
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.
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.
The page stops and asks for the matching date. It never combines a dated point with an assumed same-day clock point.
Without dates, 8:00 AM to 8:00 AM is zero, not 24 hours. Add consecutive dates when a full day is intended.
In 24-hour mode, 24:00 is accepted as the boundary at the end of a day. Values such as 24:15 are rejected.
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.
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
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.
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.
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.
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.
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.
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