OmniTools
timeDifficulty: 2/5

Time Calculator

Add or subtract durations from a time, find the gap between two times, and sum several durations — with midnight crossings shown clearly.

What do you want to calculate

08:30 + 2:45 = 11:15

17:30 − 9:45 = 07:45

How long from 09:00 to 17:30

One duration per line

90 minutes = 1:30:00

17:30, 5:30 PM or 1730.

2:45, 2h 30m, 90m, or a bare number meaning minutes.

Why the totals come out exact: Every value is converted to whole seconds, added as integers, and formatted once at the end. Adding fractional hours as you go accumulates error — a week of shifts summed in decimal hours lands on 39.99999999999999 rather than 40 — because tenths of an hour cannot be represented exactly in binary floating point. A duration’s hours are also unbounded here, so 100:00 means one hundred hours; a time of day is not, so 25:00 is refused as a typo rather than silently wrapped to 01:00.

How it works

  1. Choose what you want to calculate.
  2. Enter times as 17:30, 5:30 PM or 1730; durations as 2:45, 2h 30m or 90m.
  3. Everything is calculated in whole seconds in your browser, so the totals are exact.
Privacy & Processing: Everything runs in your browser. Nothing you enter is uploaded, stored, or sent to analytics.

Frequently Asked Questions

What can it calculate?

Adding a duration to a time (08:30 + 02:45 = 11:15), subtracting one (17:30 − 09:45 = 07:45), the difference between two times, the total of several durations, and conversions between hours, minutes and seconds.

What happens when the result crosses midnight?

It is reported. 23:30 + 02:00 gives 01:30 and states that it is the NEXT day — producing "01:30" with no further comment is how a shift or a deadline gets missed. Multiple-day rollovers are counted too.

Why is the arithmetic done in seconds?

Because fractional hours cannot be represented exactly in binary floating point. Working in whole seconds and converting once at the end means a 40-hour total reports exactly 40.00 rather than 39.99999999999999.

What input formats work?

Times as 17:30, 17:30:45, 5:30 PM or 1730. Durations as 2:45, 2h 30m, 90m, or a bare number meaning minutes. A duration’s hours are unbounded, so 100:00 means one hundred hours — unlike a time of day, where 25:00 is a typo and is refused rather than silently wrapped.

Related Tools