Skip to content
FiftyCalc Free calculators for all 50 states

Time Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Add two durations together, or take one away from the other, in days, hours, minutes and seconds.

Result

Sample figures

Result in decimal hours—

Days —

  • Hours—
  • Minutes—
  • Seconds—
  • Result in minutes—
  • Result in seconds—
  • Sign of the result—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Time Calculator

First time: days: enter 0 or more. Prefilled example: 0.

First time: hours: enter 0 or more. Prefilled example: 2.

First time: minutes: enter 0 or more. Prefilled example: 45.

First time: seconds: enter 0 or more. Prefilled example: 30.

Operation

Operation: choose Add (+) or Subtract (−). Prefilled example: Add (+).

Second time: days: enter 0 or more. Prefilled example: 0.

Second time: hours: enter 0 or more. Prefilled example: 1.

Second time: minutes: enter 0 or more. Prefilled example: 30.

Second time: seconds: enter 0 or more. Prefilled example: 45.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. First time: days: enter 0 or more.
  2. First time: hours: enter 0 or more.
  3. First time: minutes: enter 0 or more.
  4. First time: seconds: enter 0 or more.
  5. Operation: choose Add (+) or Subtract (−).
  6. Second time: days: enter 0 or more.
  7. Second time: hours: enter 0 or more.
  8. Second time: minutes: enter 0 or more.
  9. Second time: seconds: enter 0 or more.
  10. Read the result: Result in decimal hours; the panel also shows Days, Hours, Minutes, Seconds, Result in minutes, Result in seconds and Sign of the result.

How this calculator works

Each time is turned into seconds: days × 86,400 + hours × 3,600 + minutes × 60 + seconds. The two totals are added or subtracted, then the result is split back into days, hours, minutes and seconds.

A day is 24 hours, an hour 60 minutes and a minute 60 seconds (SI units as defined by NIST). Entries above 59 minutes or 23 hours are fine: 90 minutes counts as 1 hour 30 minutes.

The formula

  1. H=d1×86,400+h1×3,600+m1×60+s1+op×(d2×86,400+h2×3,600+m2×60+s2)3,600
Symbols used in the formula
SymbolMeaning
d1First time: days
h1First time: hours
m1First time: minutes
s1First time: seconds
opOperation
d2Second time: days
h2Second time: hours
m2Second time: minutes
s2Second time: seconds
HResult in decimal hours

Worked example

First time: days0
First time: hours2
First time: minutes45
First time: seconds30
OperationAdd (+)
Second time: days0
Second time: hours1
Second time: minutes30
Second time: seconds45
Days0
Hours4
Minutes16
Seconds15
Result in minutes256.25
Result in seconds15,375
Sign of the resultPositive (or zero)
  1. H=0×86,400+2×3,600+45×60+30+1×(0×86,400+1×3,600+30×60+45)3,600=4.27083

Result in decimal hours 4.2708

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is 2 h 45 min 30 s plus 1 h 30 min 45 s?

4 hours 16 minutes 15 seconds, or 4.2708 hours.

How do I subtract times that cross a minute or hour?

Convert both to seconds, subtract, then convert back. 3 h 10 min − 1 h 25 min = 6,300 seconds = 1 hour 45 minutes.

Questions answered

Related calculators