Why it works
- What it does
- Times are parts of a day, so clock-out minus clock-in times 24 gives hours. When the shift ends after midnight, the difference goes negative. MOD(difference, 1) wraps it round to the time left in the day, which is the length of the shift.
- The shape of the formula
- =MOD(time out - time in, 1) * 24
- How to remember it
- Negative hours mean midnight was crossed: wrap them with MOD.
- The usual mistake
- Subtracting the times and multiplying by 24. Night shifts come out as minus 16 hours.
Keep practicing
Updated