Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Time Calculator — Free Online Time Addition & Subtraction Tool

Add or subtract hours, minutes, and seconds from any starting time.

Base Time

Time to Add/Subtract

Result

10:30:00

Original Time

08:00:00

Total Seconds

37,800

Common Time Conversions Reference Table

Duration Minutes Seconds Decimal Hours
0:15:00 15 900 0.25
0:30:00 30 1,800 0.50
1:00:00 60 3,600 1.00
2:30:00 150 9,000 2.50
4:00:00 240 14,400 4.00
8:00:00 480 28,800 8.00
12:00:00 720 43,200 12.00
24:00:00 1,440 86,400 24.00

Related Calculators

About this calculator

Time Addition and Subtraction Formula

Total Seconds = (H x 3600) + (M x 60) + S + (addH x 3600) + (addM x 60) + addS
Result Time = Total Seconds mod 86400
Day Overflow = floor(Total Seconds / 86400)

Variables Explained

  • H, M, S: The base time hours, minutes, and seconds. These represent your starting point in 24-hour format.
  • addH, addM, addS: The hours, minutes, and seconds to add (positive) or subtract (negative). When subtracting, these values are negated internally.
  • Total Seconds: The raw sum of all time components converted to seconds. This intermediate value can be negative (when subtracting a larger duration from a smaller time) or greater than 86,400 (when the result extends past midnight).
  • 86,400: The number of seconds in one day (24 hours x 60 minutes x 60 seconds). This constant is used for the modulo operation that wraps time within a single day.
  • mod (modulo): The remainder after division. This operation ensures the result time stays within 0-86,399 seconds (00:00:00 to 23:59:59).
  • Day Overflow: The number of whole days the result exceeds or precedes the current day. Positive values mean future days; negative values mean previous days.

Step-by-Step Example

Add 5 hours 45 minutes to 20:30:00:

  1. Convert base time to seconds: (20 x 3,600) + (30 x 60) + 0 = 72,000 + 1,800 = 73,800 seconds
  2. Convert addition to seconds: (5 x 3,600) + (45 x 60) + 0 = 18,000 + 2,700 = 20,700 seconds
  3. Sum: 73,800 + 20,700 = 94,500 seconds
  4. Day overflow: floor(94,500 / 86,400) = 1 day
  5. Remaining seconds: 94,500 mod 86,400 = 8,100 seconds
  6. Convert back: 8,100 / 3,600 = 2 hours, remainder 900 / 60 = 15 minutes, 0 seconds
  7. Result: 02:15:00 (+1 day)

This means adding 5 hours 45 minutes to 8:30 PM pushes the time to 2:15 AM the next day.

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026