Why time arithmetic is different
Ordinary numbers are base 10, but clock time mixes bases. Sixty seconds make a minute, sixty minutes make an hour and twenty-four hours make a day. Adding 50 minutes to 40 minutes is not 90 of anything useful; it is 1 hour 30 minutes. The reliable way to add or subtract time is to convert everything to a single unit, usually seconds, do the arithmetic, then convert back into days, hours, minutes and seconds.
Days = ⌊total ÷ 86,400⌋, hours = ⌊remainder ÷ 3,600⌋, minutes = ⌊remainder ÷ 60⌋, seconds = what is left
Adding or subtracting two durations
Enter two amounts of time and choose add or subtract. You can leave fields blank or type values that overflow, such as 90 minutes or 30 hours; the result is normalized. The answer also appears as decimal days, hours, minutes and seconds, which is handy for spreadsheets and timesheets.
Worked example
1 day 2 hours 3 minutes 4 seconds plus 23 hours 58 minutes 59 seconds:
- First amount: 86,400 + 7,200 + 180 + 4 = 93,784 seconds.
- Second amount: 82,800 + 3,480 + 59 = 86,339 seconds.
- Sum: 180,123 seconds = 2 days 2 hours 2 minutes 3 seconds.
- In decimals: 2.084757 days, 50.03417 hours, 3,002.05 minutes.
If the second amount is larger than the first in a subtraction, the result is negative and each component carries a minus sign, for example 0 days −18 hours −50 minutes −30 seconds.
Adding time to a date and clock time
The second mode starts from a calendar date and a time of day, in 12-hour or 24-hour format, and moves forward or back by days, hours, minutes and seconds. It rolls over midnight and month ends correctly. For example, 8:30:00 AM on January 15, 2026 plus 1 day 20 hours 45 minutes 10 seconds is 5:15:10 AM on Saturday, January 17, 2026. Clock arithmetic here is pure wall-clock time: daylight saving changes are not applied, so adding 24 hours always gives the same clock time on the next day.
Time expressions
The expression mode accepts any number of values joined with plus and minus signs. Each value needs a unit letter: d for days, h for hours, m for minutes and s for seconds. A single value can combine units, like 1d 2h 3m 4s. Spaces are optional. The expression 1d 2h 3m 4s + 4h 5s - 2030s + 28h equals 2d 9h 29m 19s, or 206,959 seconds.
Unit reference
| Unit | Seconds | Minutes | Hours |
|---|---|---|---|
| 1 minute | 60 | 1 | 0.016667 |
| 1 hour | 3,600 | 60 | 1 |
| 1 day | 86,400 | 1,440 | 24 |
| 1 week | 604,800 | 10,080 | 168 |
| Common year (365 days) | 31,536,000 | 525,600 | 8,760 |
A note on how time is defined
The second is the base unit of time in the International System of Units. Since 1967 it has been defined by the radiation of cesium-133 atoms: exactly 9,192,631,770 cycles. A calendar day of 86,400 seconds is a convention; Earth's rotation varies slightly, which is why leap seconds have occasionally been inserted into official time. Everyday calculations like these ignore leap seconds, as do nearly all computer clocks.
Common mistakes to avoid
- Treating minutes as decimals. 1.30 hours is 1 hour 18 minutes, not 1 hour 30 minutes. Write 1h 30m or 1.5 hours instead.
- Forgetting to carry. 45 minutes plus 30 minutes is 1 hour 15 minutes, so the hour column must increase by one.
- Mixing 12-hour and 24-hour times. 12:15 AM is a quarter past midnight, while 12:15 PM is a quarter past noon.
- Ignoring the date. Adding hours to a late-evening time often moves the result to the next day, which the date mode handles for you.