Time between two times
Two clock times in, the minutes between them out, and how many slots fit. An end before the start counts as the next day.
How many slots fit in an hour, or in a day?
| Slot | In an hour | In an hour, 5 minutes after each | In 8 hours | In 8 hours, 5 minutes after each |
|---|---|---|---|---|
| 5 minutes | 12 | 6 | 96 | 48 |
| 10 minutes | 6 | 4 | 48 | 32 |
| 15 minutes | 4 | 3 | 32 | 24 |
| 20 minutes | 3 | 2 | 24 | 19 |
| 30 minutes | 2 | 1 | 16 | 13 |
| 45 minutes | 1 | 1 | 10 | 9 |
| 60 minutes | 1 | 1 | 8 | 7 |
Each slot but the last is followed by its gap. Twenty-minute slots with 5 minutes after each fill 8 hours with 19: 19 × 20 + 18 × 5 = 470 minutes, 10 left.
What if the end is after midnight?
An end before the start is read as the next day: 10:00 pm to 1:30 am is 3 hours 30 minutes (210 minutes). The slot maker lays out the slots themselves.