Elapsed shift: 9:15 AM to 5:45 PM
Calculator Campus verified test vector
- Convert 9:15 AM to 09:15 and 5:45 PM to 17:45.
- Subtract start from end: 17:45 − 09:15.
- The difference is 8 hours 30 minutes, or 8.50 decimal hours.
A time calculator answers three everyday questions: how much time elapsed between two clock readings, what time it will be after adding a duration, and what time it was before subtracting a duration. This version focuses on local wall-clock arithmetic, overnight rollover, decimal hours, and total minutes without pretending to solve time-zone or daylight saving edge cases automatically.
Results update as you type.
Supports three high-intent time tasks in one focused form: elapsed time, adding a duration, and subtracting a duration. Results include a human-readable answer plus decimal hours and total minutes for payroll or planning.
Elapsed seconds = Adjusted end seconds − Start seconds Duration seconds = hours × 3600 + minutes × 60 + seconds Result clock = (start seconds ± duration seconds) mod 86,400
| Symbol | Name | Unit | Description |
|---|---|---|---|
| S | Start time | seconds after midnight | The local clock time converted to seconds. |
| E | End time | seconds after midnight | The end clock time; add 86,400 seconds when the span crosses midnight. |
| D | Duration | seconds | Whole hours, minutes, and seconds converted to one total. |
| R | Result clock | time of day | The normalized clock time after adding or subtracting a duration. |
The implementation converts each clock input to seconds after midnight, performs arithmetic on seconds, then formats the result back into hours, minutes, decimal hours, and total minutes. Elapsed-time mode can add one 24-hour day to the end time for overnight spans. Add/subtract mode reports whether the result lands on the same day, next day, previous day, or farther away.
Elapsed shift: 9:15 AM to 5:45 PM
Calculator Campus verified test vector
Overnight span: 11:00 PM to 7:00 AM
Calculator Campus verified test vector
Add a duration: 11:30 PM plus 1 hour 30 minutes
Calculator Campus verified test vector
Use this calculator for work shifts, classroom elapsed-time practice, billing blocks, event schedules, cooking timers, travel planning, or any case where you need hours and minutes quickly. It pairs well with the [Percentage Change Calculator](/calculators/percentage-change-calculator) when comparing time spent across periods, and the [calculator directory](/calculators) as more planning tools are added.
This page intentionally covers the generic time calculator intent shown in the latest research bundle: elapsed time, adding time, subtracting time, and decimal-hour conversion. It does not try to become a full date calculator or timecard payroll system. Keeping the first version focused makes the form fast while still answering the high-volume queries competitors handle.
Clock arithmetic is easiest after converting each value to seconds. For example, 9:15 AM is 9 × 3600 + 15 × 60 = 33,300 seconds after midnight. 5:45 PM is 17 × 3600 + 45 × 60 = 63,900 seconds after midnight. The difference is 30,600 seconds, which formats as 8 hours 30 minutes. Decimal hours are 30,600 ÷ 3,600 = 8.50; total minutes are 30,600 ÷ 60 = 510.
A same-day subtraction from 11:00 PM to 7:00 AM is negative, but many real shifts and schedules cross midnight. The default end-day handling treats an earlier end time as the next day, so 7:00 AM becomes 31:00 for the calculation and the duration is 8 hours. If you need strict same-day validation, choose the same-day option and the calculator will reject an earlier end time instead.
The calculator works with floating local wall times. It does not know whether 1:30 AM happened once or twice during a fall-back transition, or whether 2:30 AM was skipped during a spring-forward transition. For travel, scheduling systems, or legal records where the zone matters, convert to a real timestamp with a time zone first, then compare those timestamps.
1.5 hours is 1 hour 30 minutes, not 1 hour 5 minutes.