Time Calculator
Add or subtract time from any start time, or calculate the duration between two times. Handles midnight crossing.
Time Calculator
Result Time
11:30 AM
11:30:00 (24-hour)
Both Formats
What Is the Time Calculator?
The Time Calculator performs arithmetic on times — adding, subtracting, or finding the duration between two clock times. Unlike simple arithmetic, time operates in a base-60 system (60 seconds per minute, 60 minutes per hour) and loops every 24 hours, which makes manual calculation error-prone. This calculator handles all of these nuances automatically.
Three modes are available: Add Time (adds hours, minutes, and seconds to a starting time to find an ending time), Subtract Time (subtracts a duration from a time to find an earlier time), and Time Between Two Times (calculates the exact duration between a start and end time). All modes handle midnight crossings — where the calculation wraps from 23:59 to 00:00 or back across midnight.
Results are shown in hours:minutes:seconds (HH:mm:ss) and also in total minutes and total seconds for easy use in further calculations. Both 12-hour (AM/PM) and 24-hour output formats are supported.
Time Arithmetic Formula
All time arithmetic is performed in total seconds, which are then converted back to hours, minutes, and seconds.
Time Addition/Subtraction
Where:
- h₁, m₁, s₁= Hours, minutes, and seconds of the first time (or start time)
- h₂, m₂, s₂= Hours, minutes, and seconds to add or subtract (or end time)
- 86400= Total seconds in 24 hours — used to handle midnight crossover with modulo arithmetic
- (totalSeconds % 86400 + 86400) % 86400= Ensures result is always positive and within 0–86399 (one 24-hour day)
- resultHours= floor(result / 3600); resultMinutes = floor((result % 3600) / 60); resultSeconds = result % 60
Common Use Cases
| Mode | Example Question | Typical Users |
|---|---|---|
| Add Time | "My flight leaves at 14:35 and takes 8h 25m — when do I arrive?" | Travelers, schedulers |
| Subtract Time | "I need to be at the airport 3 hours before an 8:15 AM flight — when should I leave?" | Planners, commuters |
| Time Between | "My shift started at 6:45 AM and ended at 3:20 PM — how many hours did I work?" | Workers, HR, timesheets |
How to Use This Calculator
- Select a Mode: Choose Add Time, Subtract Time, or Time Between Two Times from the dropdown.
- Enter Time Values: Input the start time and the duration (or end time) in hours, minutes, and seconds.
- Read Results: The result time is shown in both 12-hour and 24-hour formats, along with the total duration in hours, minutes, and seconds.
- Midnight Crossover: If the result crosses midnight (e.g., adding 6 hours to 10:00 PM = 4:00 AM the next day), the calculator handles this automatically.
Real-World Applications
Time arithmetic is a fundamental business skill. Payroll officers calculate total hours worked by finding the time between clock-in and clock-out, subtracting unpaid breaks, and summing across the work week. Overtime calculations require knowing when 8 hours or 40 hours were exceeded. Even small errors in time arithmetic — especially around midnight shifts — can lead to incorrect paychecks and labor disputes.
Project managers tracking task durations, video editors summing clip lengths, chefs timing multi-stage cooking processes, and athletes calculating race splits all need accurate time arithmetic. The base-60 system makes manual calculation slow and error-prone; a dedicated calculator eliminates mistakes.
Logistics coordinators use time arithmetic to calculate pickup and delivery windows, track transit durations across time zones, and plan routes that account for loading, driving, and customs processing time. Getting time sums right is essential for meeting contractual service level agreements and avoiding costly delays.
Worked Examples
Flight Arrival Time
Problem:
Departure at 14:35, flight duration 8 hours 25 minutes. What is the arrival time?
Solution Steps:
- 1Start: 14:35:00 → 14×3600 + 35×60 = 52500 seconds
- 2Duration: 8h 25m → 8×3600 + 25×60 = 30300 seconds
- 3Total: 52500 + 30300 = 82800 seconds
- 482800 % 86400 = 82800 (no midnight crossover)
- 582800 / 3600 = 23h; (82800 % 3600) / 60 = 0 min
- 6Result: 23:00 (11:00 PM)
Result:
Arrival time: 23:00 (11:00 PM local time at destination).
Night Shift Hours Worked
Problem:
Clock in at 22:30, clock out at 06:15 next morning. How many hours worked?
Solution Steps:
- 1Start: 22:30 = 81000 seconds; End: 06:15 = 22500 seconds
- 2Difference: 22500 − 81000 = −58500 seconds (negative — crossed midnight)
- 3Adjust: −58500 + 86400 = 27900 seconds
- 427900 / 3600 = 7h; (27900 % 3600) / 60 = 45 min
- 5Duration: 7 hours 45 minutes
Result:
Night shift of 7 hours 45 minutes worked (22:30 to 06:15 crossing midnight).
Add 3 Hours 45 Minutes to 21:30
Problem:
What time is 3 hours 45 minutes after 21:30?
Solution Steps:
- 1Start: 21:30 = 77400 seconds
- 2Duration: 3h 45m = 13500 seconds
- 3Total: 77400 + 13500 = 90900 seconds
- 490900 % 86400 = 4500 seconds (crossed midnight)
- 54500 / 3600 = 1h; 4500 % 3600 = 900 seconds = 15 min
- 6Result: 01:15 AM (next day)
Result:
3h 45m after 21:30 = 01:15 AM (past midnight).
Tips & Best Practices
- ✓For payroll, always verify that total hours correctly account for unpaid breaks — subtract break time from the worked duration.
- ✓Night shift workers: use 'Time Between' mode with the start on one day and end the next — the calculator handles the midnight crossover automatically.
- ✓Add multiple durations by chaining: add the first two, use that result as the new start, add the next, and so on.
- ✓Convert hours to decimal for payroll systems that use decimal hours: 7h 45m = 7 + 45/60 = 7.75 hours.
- ✓Overtime threshold: 8 hours in a day or 40 hours in a week. Track daily hours with this calculator to flag when overtime begins.
- ✓For video editing, convert frames to seconds (frames / frame rate = seconds) before using this calculator for total runtime.
Frequently Asked Questions
Sources & References
- Sexagesimal — Wikipedia (2024)
- Time — Wikipedia (2024)
- Fair Labor Standards Act — US DOL (2024)
Last updated: 2026-06-06
Help us improve!
How would you rate the Time Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various