Time Calculator

Calculate the duration between two times or dates, add and subtract time durations, and convert between hours, minutes, and seconds. Two modes: Time Between and Add / Subtract Time — all free, no signup.

Time Calculator

What Is the Time Calculator?

The Time Calculator is a free tool with two powerful modes. Time Between mode calculates the exact duration between any two date-and-time points — down to seconds. This is ideal for calculating work hours, project durations, how long an event lasted, or the time until a deadline. Add / Subtract Time mode lets you add or subtract a duration to a start time, giving you the exact resulting time — useful for scheduling and planning.

Time calculations are surprisingly tricky to do mentally because of the non-decimal nature of minutes and seconds (base 60) and because days have 24 hours rather than 100. This calculator handles all of that automatically and instantly.

How to Use the Time Calculator

  1. Choose your Mode: "Time Between" to find duration, or "Add / Subtract" to shift a time.
  2. Time Between: Enter a start date and time and an end date and time, then click Calculate Duration.
  3. Add / Subtract: Enter a start time, choose Add or Subtract, enter hours/minutes/seconds, then click Calculate.
  4. Results appear instantly in the results panel below the button.

Time Calculation Formula

Duration (seconds) = End DateTime − Start DateTime (in ms) ÷ 1000 Days = floor(seconds ÷ 86400) Hours = floor((seconds mod 86400) ÷ 3600) Minutes = floor((seconds mod 3600) ÷ 60) Seconds = seconds mod 60 Add/Subtract: Total seconds = start_seconds ± duration_seconds Result time = Total seconds mod 86400 (wraps at midnight)

Common Time Durations Reference

DurationHoursMinutesSeconds
1 minute0.0167 hrs1 min60 sec
1 hour1 hr60 min3,600 sec
8-hour workday8 hrs480 min28,800 sec
1 day24 hrs1,440 min86,400 sec
1 week168 hrs10,080 min604,800 sec
30 days720 hrs43,200 min2,592,000 sec

When to Use This Calculator

The time calculator is useful whenever you need to measure or manipulate time with precision. Common use cases include: calculating billable work hours between clock-in and clock-out times, determining how long a project or meeting lasted, finding out what time a flight or drive will arrive given a departure time and duration, calculating overtime hours, and planning events that need to start or end at a specific time.

It also handles cross-midnight calculations automatically. If you worked from 10:00 PM to 6:00 AM, simply enter both times and the calculator will give the correct 8-hour result. For time spans spanning multiple days, use the datetime-local inputs in Mode 1 which include the date component.

Frequently Asked Questions

How do I calculate hours between two times?+
Use Mode 1 (Time Between). Enter your start and end date-times, click Calculate Duration, and the result shows the exact hours, minutes, and seconds between them.
Can I calculate time that crosses midnight?+
Yes. In Mode 1, include the date in your start and end times. The calculator handles multi-day spans correctly. In Mode 2, if the result crosses midnight, it notes this in the result.
How do I add hours to a specific time?+
Use Mode 2 (Add / Subtract). Enter your start time, select "Add", type in the hours and minutes to add, and click Calculate. The result is the new time.
How many hours is 9 AM to 5 PM?+
9 AM to 5 PM is exactly 8 hours. Enter those times in Mode 1 (Time Between) and the result confirms 0 days, 8 hours, 0 minutes, 0 seconds.
Is this time calculator free?+
Yes, completely free at CLCU Online — no login, no subscription needed.