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)

HHours
2
MMinutes
30
SSeconds
0
TTotal Minutes
150

Both Formats

12-hour format11:30 AM
24-hour format11:30:00
Duration added2h 30m 0s

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

totalSeconds = h₁×3600 + m₁×60 + s₁ ± (h₂×3600 + m₂×60 + s₂); result = ((totalSeconds % 86400) + 86400) % 86400

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

  1. Select a Mode: Choose Add Time, Subtract Time, or Time Between Two Times from the dropdown.
  2. Enter Time Values: Input the start time and the duration (or end time) in hours, minutes, and seconds.
  3. 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.
  4. 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:

  1. 1Start: 14:35:00 → 14×3600 + 35×60 = 52500 seconds
  2. 2Duration: 8h 25m → 8×3600 + 25×60 = 30300 seconds
  3. 3Total: 52500 + 30300 = 82800 seconds
  4. 482800 % 86400 = 82800 (no midnight crossover)
  5. 582800 / 3600 = 23h; (82800 % 3600) / 60 = 0 min
  6. 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:

  1. 1Start: 22:30 = 81000 seconds; End: 06:15 = 22500 seconds
  2. 2Difference: 22500 − 81000 = −58500 seconds (negative — crossed midnight)
  3. 3Adjust: −58500 + 86400 = 27900 seconds
  4. 427900 / 3600 = 7h; (27900 % 3600) / 60 = 45 min
  5. 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:

  1. 1Start: 21:30 = 77400 seconds
  2. 2Duration: 3h 45m = 13500 seconds
  3. 3Total: 77400 + 13500 = 90900 seconds
  4. 490900 % 86400 = 4500 seconds (crossed midnight)
  5. 54500 / 3600 = 1h; 4500 % 3600 = 900 seconds = 15 min
  6. 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

The calculator converts all times to total seconds from midnight, performs the arithmetic, then applies modulo 86400 (the number of seconds in a day) to wrap the result into the 0–86399 range. If the result is negative (e.g., subtracting more time than elapsed since midnight), adding 86400 brings it back into the valid range. This ensures the calculator works correctly for night shifts, cross-midnight flights, and other scenarios where time wraps around the day boundary.
No — this is a clock arithmetic calculator that works with pure time values without timezone or DST awareness. If you're calculating duration across a DST transition (e.g., a clock change at 2 AM that makes the night either 23 or 25 hours long), you'll need to manually adjust by adding or subtracting 1 hour. For timezone and DST-aware time calculations, use the timezone converter tool.
Use the 'Time Between Two Times' mode for each shift to find the daily duration, then use 'Add Time' to sum the daily totals. For example: Monday 7h 30m + Tuesday 8h 15m = 15h 45m (use Add Time with 7:30 + 8:15). Continue adding each day until you have the weekly total. For a multi-shift week, note the subtotal after each step to avoid arithmetic errors.
The calculator handles durations beyond 24 hours in add/subtract mode — entering 30 hours 0 minutes as a duration to add will correctly compute the result two days later. In 'Time Between' mode, the result is always shown as hours, minutes, seconds regardless of whether the span crosses multiple days. For date-spanning calculations (e.g., exactly how many hours and minutes between two calendar dates), use the Date Duration Calculator instead.
The base-60 (sexagesimal) system for time measurement was inherited from the ancient Babylonians, who used it because 60 has many divisors (1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60), making fractions of an hour easy to express as whole numbers. This system was adopted by ancient Greek and Arab astronomers and has remained standard for over 4,000 years. The French Revolution briefly introduced decimal time (10-hour days), but it was abandoned within two years due to its unpopularity.

Sources & References

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.

Source

Formula Source: Standard Mathematical References

by Various

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.