What this calculator does
This tool lets you add and subtract up to five separate time durations, each expressed in hours, minutes and seconds. Every row also has a repeat count, so you can multiply a single duration by how many times it occurs before it is added to or subtracted from the running total. The answer is shown two ways: as a tidy hours:minutes:seconds total, and as decimal totals in hours, in minutes, and in seconds. It is pure time arithmetic and works for any purpose worldwide.
How to use it
For each row, choose Add or Subtract, type the hours, minutes and seconds, and set the repeat count (how many times that duration occurs). A repeat count of 0 makes the row inert. You do not have to keep minutes and seconds between 0 and 59 on input — entering 90 minutes is fine and counts as 1 hour 30 minutes. Leave unused rows at zero. The result automatically normalizes the grand total.
The formula explained
Each row is first converted into seconds: rowSeconds = hours x 3600 + minutes x 60 + seconds. That value is multiplied by the row's signed operation (+1 for Add, -1 for Subtract) and by its repeat count, then all five contributions are summed into a single total in seconds.
$$\text{Total Seconds} = \sum_{i=1}^{5} \text{Op}_i \cdot \text{Repeat}_i \cdot \left( 3600\,\text{H}_i + 60\,\text{M}_i + \text{S}_i \right)$$
Decimal outputs divide that total by 60 (minutes) and 3600 (hours). The H:M:S display takes whole hours by flooring, then the leftover minutes and seconds.
$$\begin{gathered} \text{Hours} = \left\lfloor \frac{T}{3600} \right\rfloor, \quad \text{Minutes} = \left\lfloor \frac{T \bmod 3600}{60} \right\rfloor, \quad \text{Seconds} = T \bmod 60 \\[1em] \text{where}\quad T = \text{Total Seconds} \end{gathered}$$
If the total is negative, the sign is kept on the whole result.
Worked example
Defaults: Row 1 = Add (2h 45m 15s) x 2 = \(9915\ \text{s} \times 2 = 19830\ \text{s}\). Row 2 = Add (1h 15m 15s) x 1 = \(4515\ \text{s}\). Rows 3-5 have repeat count 0, so they contribute nothing. Total = \(19830 + 4515 = 24345\) seconds. That is
$$24345 / 3600 = 6.7625 \text{ hours}, \quad 24345 / 60 = 405.75 \text{ minutes}$$
and as H:M:S it is 6 hours 45 minutes 45 seconds.
Time Unit Conversion Table
Every calculation in this tool rests on two exact, universal definitions: \(1\ \text{h} = 60\ \text{min} = 3600\ \text{s}\) and \(1\ \text{min} = 60\ \text{s}\). These are fixed relationships in the SI-based civil time system, so the factors below are exact (values marked "approx." are exact fractions rounded for display).
Exact base factors
| From | To seconds | To minutes | To hours |
|---|---|---|---|
| 1 hour | 3600 s | 60 min | 1 h |
| 1 minute | 60 s | 1 min | 1/60 h ≈ 0.0167 h |
| 1 second | 1 s | 1/60 min ≈ 0.0167 min | 1/3600 h ≈ 0.000278 h |
Minutes and seconds as decimal hours
| Duration | Seconds | Decimal hours | Decimal minutes |
|---|---|---|---|
| 6 min | 360 s | 0.1 h | 6 min |
| 12 min | 720 s | 0.2 h | 12 min |
| 15 min | 900 s | 0.25 h | 15 min |
| 20 min | 1200 s | 0.3333 h (approx.) | 20 min |
| 30 min | 1800 s | 0.5 h | 30 min |
| 45 min | 2700 s | 0.75 h | 45 min |
| 50 min | 3000 s | 0.8333 h (approx.) | 50 min |
| 1 min | 60 s | 0.0167 h (approx.) | 1 min |
| 1 s | 1 s | 0.000278 h (approx.) | 0.0167 min (approx.) |
Seconds as decimal minutes
| Seconds | Decimal minutes | Decimal hours |
|---|---|---|
| 6 s | 0.1 min | 0.001667 h (approx.) |
| 15 s | 0.25 min | 0.004167 h (approx.) |
| 30 s | 0.5 min | 0.008333 h (approx.) |
| 45 s | 0.75 min | 0.0125 h |
| 60 s | 1 min | 0.016667 h (approx.) |
To convert in the other direction, multiply instead of divide: decimal hours × 60 gives minutes, and decimal minutes × 60 gives seconds. For example, \(0.4\ \text{h} \times 60 = 24\ \text{min}\), and \(0.35\ \text{min} \times 60 = 21\ \text{s}\).
How to Calculate Time Addition and Subtraction by Hand
The reliable method is always the same: leave hours-minutes-seconds arithmetic behind as early as possible, do the whole sum in seconds, then convert once at the end. This avoids the classic borrowing mistakes that happen when you try to subtract minutes from minutes column-by-column.
- Convert each row to seconds. For a row entered as H hours, M minutes and S seconds: $$s_i = 3600\,H_i + 60\,M_i + S_i$$ The entry does not have to be normalized — 90 minutes and 120 seconds are accepted as written.
- Multiply by the repeat count. If the row is repeated \(R_i\) times, its contribution becomes \(R_i \cdot s_i\). A repeat count of 1 leaves the row unchanged.
- Apply the sign. Use \(o_i = +1\) for an Add row and \(o_i = -1\) for a Subtract row, so each row contributes \(o_i \cdot R_i \cdot s_i\).
- Sum all rows to get the total seconds T. $$T = \sum_{i=1}^{n} o_i \cdot R_i \cdot \left( 3600\,H_i + 60\,M_i + S_i \right)$$ This single signed integer now carries the entire answer.
- Note the sign and work with |T|. If \(T < 0\) the result is a negative duration; record the minus sign, then continue with the absolute value \(|T|\). Normalizing a negative number directly is where most hand calculations go wrong.
- Hours: $$\text{hours} = \left\lfloor |T| / 3600 \right\rfloor$$ Take the whole number only, discarding the remainder for now.
- Minutes: $$\text{minutes} = \left\lfloor (|T| \bmod 3600) / 60 \right\rfloor$$ The \(|T| \bmod 3600\) part is what is left after the full hours are removed, so this value is always 0–59.
- Seconds: $$\text{seconds} = |T| \bmod 60$$ Also always 0–59.
- Reattach the minus sign to the whole result. Write it once, in front of the complete duration — for example −0:45:00 means minus forty-five minutes, not a mix of positive and negative parts.
- Produce the decimal forms. $$\text{decimal hours} = |T| / 3600, \qquad \text{decimal minutes} = |T| / 60$$ and the raw total in seconds is \(|T|\) itself. Keep the same leading minus sign if \(T\) was negative. Decimal hours are what payroll, billing and spreadsheet software usually expect, since 7 h 30 min must be entered as 7.5, not 7.30.
Quick check: after normalizing, run the conversion backwards — \(3600 \cdot \text{hours} + 60 \cdot \text{minutes} + \text{seconds}\) should reproduce \(|T|\) exactly. If it does not, a floor or remainder step went astray. Also remember that this arithmetic treats durations as pure elapsed time; it does not account for calendar effects such as daylight-saving transitions, which can make a clock-to-clock interval differ from the elapsed duration by an hour on the changeover day in regions that observe it.
FAQ
Can the result be negative? Yes. If your Subtract rows outweigh the Add rows, the total goes negative and the minus sign is shown on the whole time.
What does the repeat count do? It multiplies that one row's whole duration. A 30-minute task repeated 4 times adds 2 hours.
Are decimals allowed? Yes. You can enter fractional hours, minutes or seconds; decimal outputs keep the precision while the H:M:S display rounds down to whole seconds.