Calculate duration

Add or subtract elapsed times expressed as seconds or hours, minutes, and seconds.

freeworks offlinenothing uploaded
ToolDuration Calculator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Each operand becomes a scalar second count before addition or subtraction. The signed result is then decomposed into days of exactly 86,400 seconds, hours, minutes, and seconds.

  • Addition is the initial operation.
  • These are exact elapsed durations, not local calendar periods that may cross daylight-saving changes.

Worked example

Add Two Durations
Add a 2-hour meeting and a 45-minute session
Input
											Input1: 02:00:00
Input2: 00:45:00
										
Output
												02:00:00 + 00:45:00 = 02:45:00

Result: 02:45:00
Total seconds: 9900
											

When to use this

Media edits total clip running times, training logs subtract split timestamps, and service-level reports combine processing durations.

Edge cases

  • 25:00:00 is treated as 90,000 elapsed seconds rather than rejected as an invalid time of day.
  • Subtracting a larger operand produces a signed duration instead of wrapping around midnight.
  • Fractional seconds are rounded in the scalar result while the displayed components use whole seconds.

References