How it works
We subtract the start time from the end time (wrapping past midnight if needed) and remove any break.
Formula
Duration = end − start − break
Example
9:00 AM to 5:30 PM with a 30-minute break is 8 hours.
Assumptions & limitations
- Results are rounded for display.
Frequently asked questions
Does it handle overnight shifts?
Yes. If the end time is earlier than the start, we assume it's the next day.