Time Calculator
Add, subtract, and convert hours, minutes, and seconds across multiple timestamps and timecards.
Parameters & Inputs
Summary & Breakdown
Days Conversion
About the Time Calculator
Unlike standard decimal numbers based on powers of ten, time follows the sexagesimal (base-60) numerical system inherited from ancient Mesopotamia.
Adding or subtracting timestamps manually often causes rollover errors when seconds exceed 60 or borrowing across hours and minutes is required.
This time calculator combines or differentiates two timestamps down to the second, rendering both traditional sexagesimal notation (HH:MM:SS) and decimal hours for billing.
How the Calculations Work
Converts both timestamps into raw total seconds, performs addition or subtraction, and converts the resulting total back into hours, minutes, and seconds via integer division and modulo.
Total Sec = (H * 3600) + (M * 60) + S | Decimal Hours = Total Sec / 3600
Variables & Definitions
- H, M, S: Hours, minutes, and seconds of each timestamp
- 3600: Seconds in one standard hour
- 60: Seconds in one minute or minutes in an hour
Adding 5h 45m 30s + 2h 35m 45s: Total seconds = 20,730 + 9,345 = 30,075 seconds. Dividing: 30,075 / 3600 = 8 hours with 1,275 seconds remainder. 1,275 / 60 = 21 minutes and 15 seconds. Output is 8h 21m 15s (8.3542 decimal hours).
Key Terms Explained
Sexagesimal System
A base-60 numbering system used for measuring time (60 seconds, 60 minutes) and angles.
Decimal Hours
Time represented in decimal format (e.g., 7.5 hours instead of 7 hours 30 minutes) used in payroll systems.
Military Time (24-Hour)
Timekeeping convention where hours run continuously from 00:00 to 23:59 without AM/PM.
Unix Epoch Timestamp
Total seconds elapsed since 00:00:00 UTC on January 1, 1970.
Practical Tips & Pitfalls to Avoid
Converting minutes to decimal
Divide minutes by 60 (e.g., 45 minutes / 60 = 0.75 hours).
Converting decimal to minutes
Multiply the fractional decimal portion by 60 (e.g., 0.35 * 60 = 21 minutes).
Flight duration and layovers
Add individual flight legs plus airport layover times to calculate total travel time.
Audio and video editing
Sum clip track durations to verify total playlist or podcast episode lengths.
Frequently Asked Questions
Take the hours as the whole number, divide the minutes by 60, and add them together (e.g., 8 hours 30 minutes = 8 + 30/60 = 8.50 hours).
The calculator takes the absolute difference and notes which timestamp was larger.
There are exactly 86,400 seconds in a standard 24-hour day (24 * 60 * 60).
Because 15 divided by 60 is 1/4, which equals 0.25 in decimal notation.
Yes. The calculator supports hundreds of hours for cumulative project timecards.