Time Subtraction Calculator
Subtract a duration from a clock time, or find the difference between two clock times, including across midnight.
Your inputs
Results
Resulting time
22:45
- Days earlier
- 1
✓Exact calculation — rounded only for display
What this calculator does
Two common time questions: “what time was it 2½ hours before 01:15?” and “how long is it from 09:15 to 17:40?”.
Formula and method
Minus: (time − duration) mod 1440; Between: later − earlier (+24 h if later is the next day)
Worked example
Calculated by this tool with its default inputs:
Inputs
- Calculate: A time minus a duration
- Time: 01:15
- Hours to subtract: 2
- Minutes to subtract: 30
Results
- Resulting time: 22:45
- Days earlier: 1
How to read the results
If the later time is earlier on the clock, it is assumed to be on the next day.
Assumptions and limitations
- 24-hour clock times.
Questions
How do I get decimal hours?
The difference mode shows both h:mm and decimal hours.
Methodology and verification
- Result type
- Exact mathematical calculation (rounded only for display)
- Formula version
- 1.0
- Automated verification
- 3 reference and validation test cases, checked against independently computed values. The site cannot be built if any of them fail.
- Editorial review
- Awaiting human editorial review. The explanation was drafted with AI assistance; the formula and examples are verified by the automated tests above.
Privacy
Everything you enter is calculated in this browser and is not sent to Numerith or anyone else. Inputs are added to a share link only if you choose to include them. Privacy policy