How it works
Quickly add or subtract time values using a 24-hour clock format.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
3-
?time1=Initial Time (HH:MM)Time · Optional · Default: 12:00
-
?time2=Interval to ChangeTime · Optional · Default: 01:30
-
?operation=OperationChoice · Optional · Default: +
Outputs
1-
resultResultText · Primary output
result contains the calculator’s complete rendered result area, including its visible result cards, tables, charts, and messages.
Add or subtract two time values (hours and minutes)
Description
The Time Calculator is a simple utility for performing arithmetic on time values. Adding and subtracting time is confusing because it uses a base-60 system (60 minutes = 1 hour) instead of the standard base-10 decimal system. This tool allows you to input two times in HH:MM format and instantly see the result of their addition or subtraction, automatically handling “carries” and “borrows.”
Inputs
- Time 1: The first time value (format: HH:MM).
- Operation: Choose + (Addition) or - (Subtraction).
- Time 2: The second time value (format: HH:MM).
Outputs
- Result: The calculated time in HH:MM format.
Chart
- N/A: This tool provides direct numeric time results.
“Good to Know”
- 24-Hour Wrap: This tool automatically “wraps” around the 24-hour clock. For example, if you add 2 hours to 23:00, the result will be 01:00.
- Negative Results: If you subtract a larger time from a smaller one, the tool calculates the “time remaining” as if looking back from the previous day.
- Use Cases: Use this for calculating total work hours, determining a deadline after a specific duration, or adjusting for time differences.
Examples
Example 1: Addition (Project Tracking)
- Input: 02:45 + 01:30
- Output: 04:15
Example 2: Subtraction (Deadline)
- Input: 17:00 - 08:30
- Output: 08:30
Example 3: Clock Wrap
- Input: 22:00 + 04:00
- Output: 02:00