FA-59267 / Payroll withholding rules / Member archive
Daily, weekly and seventh-day overtime split: weekly regular-hour room · case 02
Employees with daily overtime early in the week hit weekly overtime too soon.
Case contract
Input seven daily hour counts (workweek order). If all seven days are worked, day 7 hours are 1.5x up to 8 and double beyond 8. Other days: first 8 regular, 8-12 at 1.5x, over 12 double; regular hours beyond a weekly total of 40 regular hours become 1.5x. Return [regular, overtime, double].
Why this case matters
Stacked daily and weekly overtime rules must not double count hours or miss the seventh consecutive day.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression 0 | [35, 13, 2] | [39, 9, 2] | Failed |
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 ↗