FA-59258 / Payroll withholding rules / Member archive
Daily, weekly and seventh-day overtime split: seventh-day trigger · case 03
Anyone working the last day of the week gets seventh-day premium pay.
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 | [34, 12, 0] | [40, 6, 0] | 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 ↗