About Duration Calculator
Write one duration per line, in whatever form you have it: 1h 30m, 2:20:00, 45 min, 1.5 hours or an ISO 8601 value such as PT2H5M. Lines starting with a minus are subtracted. The total updates as you type, written as hours:minutes:seconds, in decimal hours, minutes and seconds, and as an ISO 8601 duration.
It suits timesheets, video and audio running times, training logs and anything else where lengths of time need adding up. A table shows how each line was read and the running total after it, so a mistyped entry is easy to spot.
How it works
- Each line is read on its own. Units can be written as letters or words (w, d, h, m, s, ms; weeks, days, hours, minutes, seconds), with decimals allowed.
- A clock such as 1:30 is hours and minutes; 1:30:15 adds seconds. A number with no unit is read in the unit you choose under “A number on its own means”.
- Totals are kept in whole milliseconds, so adding many decimal entries never drifts.
Questions
Is 1:30 an hour and a half or a minute and a half?
An hour and a half: two parts are hours and minutes. For a minute and a half write 0:01:30, 1m 30s or 90s.
Can I use days, months or years?
Days and weeks, yes, at 24 hours and 7 days. Months and years are refused because their length varies; for those, use the date difference calculator.
How many lines can I add?
Up to 300 lines, and a total of up to about 31,000 years. Blank lines are skipped.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.