Account

What new tool do you want?

Date & Time

Time Duration Calculator (Add & Subtract Time)

Add or subtract lists of hours and minutes — like 1:30 + 2:45 − 0:20 — and get the total in h:mm, decimal hours and days.

How to use

  1. 1Enter one duration per line (1:30, 2h 15m, 90m). Start a line with - to subtract it.
  2. 2Read the total as hours and minutes, decimal hours and days.

Frequently asked questions

Which formats can I use?

1:30 (hours:minutes), 1:30:15 (with seconds), 1h 30m, 90m, 1.5h or 2d 3h. Plain numbers are read as minutes.

How do I subtract time?

Put a minus sign in front of the line, e.g. -0:45 to take away a 45-minute break.

How do I add up a week of timesheet hours?

Enter each day's hours on its own line — the total appears in hours and minutes and as decimal hours for payroll.

Why so many input formats are accepted

Timesheets and schedules get written down inconsistently — '1:30', '1h 30m', '90m' and '1.5h' all mean the same 90 minutes, and forcing one rigid format would mean constantly reformatting data copied from somewhere else. The parser normalizes all of them to a single minutes value internally (treating a bare number as minutes), which is also why a line like '2d 3h' works: it's 2 × 1440 + 3 × 60 = 3,060 minutes.

Worked example: Time Duration Calculator

The list '1:30', '2h 45m', '-20m' adds 90 + 165 minutes and subtracts 20, for a total of 235 minutes — shown as 3h 55m. Negating a line doesn't require matching its original format: a leading minus works whether the rest of the line is clock notation or a unit-based duration, so '-1:30' followed by '1:00' nets out to -0h 30m, a negative half hour, which can happen legitimately if you're calculating a running balance of overtime versus owed time.

Reading the decimal and days outputs

Decimal hours (total minutes ÷ 60) is the format most payroll systems expect instead of h:mm — a week of 8:00, 7:45, 8:15 and 1.5h (as one of the test cases) sums to 25.5 decimal hours, not 25 hours 50 minutes misread as 25.50. The days figure (total minutes ÷ 1440) is useful mainly for long totals, like project time logged over weeks, where thinking in days is more intuitive than a four-digit minute count.

Why spelling out 'hours' instead of 'h' triggers an error

The parser only recognizes single-letter unit suffixes — d, h, m or s — immediately after a number, and then double-checks that every character of what you typed was actually consumed by a match before accepting the total. Typing '2 hours' instead of '2h' or '2 h' fails that check: the regex happily matches '2h' out of '2 hours' (the number plus the first letter of the word), but the leftover 'ours' doesn't correspond to anything, so the line is rejected rather than silently parsed as 2 hours or silently ignored. It's a deliberate trade-off — accepting only the terse abbreviations in exchange for catching typos and malformed lines that would otherwise compute a confidently wrong total.

Blank lines are ignored, and days are a fraction of 24 hours

Empty lines, and lines that are only spaces, are skipped, so a gap between two durations does not wipe the total. If every line is blank, the calculator stops and asks you to enter at least one duration instead of showing zero. The days figure is the total minutes divided by 1,440, shown to three decimal places, so 235 minutes is about 0.163 days rather than a rounded fifth of a day. Minutes themselves are shown to two decimal places, which matters when a line uses a fractional hour such as 1.5h. A duration written as 2d 3h is 3,060 minutes, which is 2.125 days. The box opens already filled with a short mixed list, so the first total you see is that sample.

Related tools

More: Date & Time