FAILURE MAP
← Case archive

FA-94060 / Shift rostering labor rules / Member archive

Weekend premium attributed by shift start day · case 05

A Friday night shift running into Saturday gets no weekend premium, and a Sunday night shift is paid weekend rates into Monday.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Shift [start, end] in minutes from Monday 00:00 and a base rate in cents per hour. Each minute earns base * (100 + pct) / 6000 cents where pct is 10 for 15:00-23:00, 15 for 23:00-07:00, else 0; on Saturday and Sunday (days 5 and 6) pct is the larger of that value and 12 (differentials do not stack). The exact total is rounded half up to a cent once.

Why this case matters

Shift differential calculations are where roster data meets payroll; stacking and day attribution errors are common.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: weekend by shift start 12376024624Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗