Quick Answer
2 hours 30 minutes plus 1 hour 45 minutes equals 4 hours 15 minutes (15,300 total seconds). The difference between 9:00 and 17:30 is 8 hours 30 minutes.
Add Time
Subtract Time
Time Between
Common Examples
| Input | Result |
|---|---|
| 2h 30m + 1h 45m | 4 hours, 15 minutes, 0 seconds |
| 5h 0m 0s - 1h 30m 0s | 3 hours, 30 minutes, 0 seconds |
| Between 9:00:00 and 17:30:00 | 8 hours, 30 minutes, 0 seconds |
| 0h 45m 30s + 0h 20m 45s | 1 hour, 6 minutes, 15 seconds |
How It Works
The Formula
All time arithmetic works by converting hours, minutes, and seconds to a single unit (total seconds), performing the operation, then converting back:
To Total Seconds: Total = H x 3600 + M x 60 + S
From Total Seconds: H = floor(Total / 3600), M = floor((Total mod 3600) / 60), S = Total mod 60
Addition: Result = Start Total Seconds + Added Total Seconds
Subtraction: Result = Start Total Seconds - Subtracted Total Seconds
| Difference: Result = | Time2 Total Seconds - Time1 Total Seconds |
Where:
- H = hours
- M = minutes (0-59 in output)
- S = seconds (0-59 in output)
- 3600 = seconds in one hour (60 x 60)
Overflow and Carry
When minutes or seconds exceed 59, they carry over to the next higher unit. For example, 1 hour + 1 hour 45 minutes + 30 minutes = 3 hours 15 minutes (75 minutes becomes 1 hour 15 minutes, added to the existing 2 hours). This is handled automatically by the total-seconds conversion.
Negative Results
Subtracting a larger time from a smaller one produces a negative result. The calculator displays this with a minus sign. For example, 1 hour minus 2 hours 30 minutes = -1 hour 30 minutes.
Common Use Cases
Time calculations are used for tracking work hours, computing exercise duration, calculating cooking or baking times, planning event schedules, and determining elapsed time for billing purposes.
Worked Example
To add 2 hours 30 minutes to 1 hour 45 minutes: Start total seconds = 2 x 3600 + 30 x 60 + 0 = 9,000. Add total seconds = 1 x 3600 + 45 x 60 + 0 = 6,300. Sum = 9,000 + 6,300 = 15,300 seconds. Convert back: H = floor(15,300 / 3600) = 4, remainder = 15,300 - 14,400 = 900. M = floor(900 / 60) = 15. S = 0. Result: 4 hours, 15 minutes, 0 seconds.
CalculateY