How it works
Both times are turned into minutes after midnight. The start is subtracted from the end; if the result is negative the span crosses midnight, so 24 hours (1,440 minutes) are added. The break is then subtracted.
minutes = (end − start + 1440) mod 1440 − break
Minutes to decimal hours
| Minutes | Decimal hours |
|---|---|
| 5 | 0.08 |
| 10 | 0.17 |
| 15 | 0.25 |
| 20 | 0.33 |
| 25 | 0.42 |
| 30 | 0.50 |
| 35 | 0.58 |
| 40 | 0.67 |
| 45 | 0.75 |
| 50 | 0.83 |
| 55 | 0.92 |
See ready-made answers for common shifts such as 9am to 5pm, 7am to 7pm and 10pm to 6am.