About the Time Calculator
Enter two durations and choose add or subtract. The calculator returns the result in days, hours, minutes and seconds, and also as total hours, minutes and seconds so you can use it for timesheets, project estimates or video lengths.
This tool works with durations, not clock times. To find the gap between two dates use a date calculator instead. Results are exact because the math uses whole seconds.
How to Use the Time Calculator
- Enter the first duration.
- Choose add or subtract.
- Enter the second duration.
- Read the result in days, hours, minutes and seconds, or as a total in a single unit.
Formula and Method
Total seconds
seconds = d × 86,400 + h × 3,600 + m × 60 + s
Convert both durations to seconds, combine, then convert back.
Decimal hours
hours = total seconds ÷ 3,600
Useful for payroll and billing.
Worked Example
Adding two durations
Input: 2 d 5 h 30 m + 1 d 20 h 45 m
- Days: 2 + 1 = 3
- Hours and minutes: 5:30 + 20:45 = 26:15, which is 1 d 2 h 15 m
- Total = 3 d + 1 d 2 h 15 m
Result: 4 days, 2 hours, 15 minutes (98.25 hours).
Frequently Asked Questions
How do I add hours and minutes?
Add the minutes first. If they total 60 or more, carry whole hours into the hours column. Then add the hours.
How do I subtract time?
Convert both durations to seconds, subtract the smaller from the larger, and convert back to days, hours, minutes and seconds.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 45 minutes is 0.75 hours and 20 minutes is 0.33 hours.
Related Calculators
Sources and Further Reading
Accuracy and Scope
Dates are treated as calendar dates in the Gregorian calendar without time zones. For legal deadlines, check how the relevant rules count days. See our full disclaimer.