I added shift differentials to my time card calculator last week, and the feature turned out to be harder than the overtime rules I had already shipped. Night pay and weekend pay sound simple: you earn a bit extra per hour for working unsociable hours. The trouble starts the moment two of them apply to the same hour.
The first decision was what a differential actually is. On a pay stub it shows up as an extra amount per hour, on top of the base rate. Night shift might add $1.50 an hour. Weekend work might add $2.00. Neither of them is overtime. That distinction matters, because overtime in the US is calculated on the regular rate of pay , and the regular rate includes shift differentials.
Here is the example that made me stop and think. Say you earn $20 an hour, you work a night shift on a Saturday, and you cross 40 hours for the week in that same shift. Your base is $20. The night differential adds $1.50 and the weekend differential adds $2.00, so the hour is worth $23.50 before overtime.…