Menu

1 / 2

Shift differentials: night pay, weekend pay, and how the calculator stacks them

DEV Community: javascript·Mobeen Ahmed·9 days ago
#gjU3zzu7
#devtojavascript#devto#dev#shift#hour
Long article (670 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.