Time Calculator

DATE & TIME · DURATION & CLOCK ARITHMETIC

Add or subtract time

Calculated on this device
Non-negative whole days.
Non-negative whole hours.
Non-negative whole minutes.
Non-negative whole seconds.
Non-negative whole days.
Non-negative whole hours.
Non-negative whole minutes.
Non-negative whole seconds.

SUM OF DURATIONS

2d 2h 16m 15s

Total equals 50.2708 hours (180,975 seconds).

Formula Exact base-60 / base-24 modular arithmetic (1 day = 86,400 s).

Total Days2.0946Decimal days
Total Hours50.2708Decimal hours
Total Minutes3,016.25Decimal minutes
Total Seconds180,975Exact seconds

HOW IT WORKS

Base-60 & base-24 time arithmetic

Unlike base-10 decimals, standard time uses 60 seconds per minute, 60 minutes per hour, and 24 hours per day. This calculator converts every component into exact total seconds before adding or subtracting, then decomposes the result back into days, hours, minutes, and seconds.

01

Normalize to Total Seconds

Each duration is converted using exact SI-aligned multipliers: 1 minute = 60 s, 1 hour = 3,600 s, and 1 standard day = 86,400 s.

Total Seconds = (d × 86,400) + (h × 3,600) + (m × 60) + s
02

Carry-Over & Negative Results

When subtracting a larger duration from a smaller one, the signed difference is preserved and formatted with a leading minus sign so you never lose track of deficit hours.

03

Clock Time Wrap-Around

In Clock Time mode, modular arithmetic modulo 86,400 seconds computes both the resulting 12-hour AM/PM and 24-hour time alongside the exact day offset.

TIME ARITHMETIC GUIDE

Adding durations, shifting clock times, and avoiding base-60 errors

Why decimal calculators get time addition wrong

Entering 1.45 + 0.30 on a standard calculator produces 1.75 instead of 2 hours and 15 minutes because minutes and seconds roll over at 60 rather than 100. Converting to total seconds first guarantees exact carry-over across seconds, minutes, hours, and days.

When to use Hours, Time Duration, or Time Card calculators

Use this Time Calculator to add or subtract durations or shift a starting clock time. If you need elapsed work hours between two clock times, try our Hours Calculator; for second-level precision between two timestamps, use the Time Duration Calculator; and for weekly payroll shifts with overtime, use the Time Card Calculator.

Frequently asked questions

How do I convert the result to decimal hours?

The Total Hours stat card automatically divides total seconds by 3,600 so you can enter decimal hours directly into billing or payroll systems.

What happens if I subtract a larger time from a smaller time?

In duration mode, the calculator displays a negative duration (for example, −1h 15m 30s). In clock-time mode, it wraps backward past midnight and shows the previous-day offset.

Can I use 24-hour military time?

Yes. In Clock Time mode, switch the Clock Format selector to “24-hour” to enter hours from 0 to 23.

Are blank duration boxes treated as zero?

Yes. Any empty days, hours, minutes, or seconds field in duration arithmetic defaults to 0 so you only need to fill in the units you care about.

All time calculations run locally in your browser and are never sent to a server.