FA-59224 / Payroll withholding rules / Member archive
Pay dates in a calendar year: first pay date ceiling · case 04
The first pay date reported for a year falls in December of the prior year.
Case contract
Input {anchor [y,m,d] (any pay date), step 7|14 days, year}. Pay dates are anchor + k*step for all integers k. Return [count of pay dates within Jan 1..Dec 31 of year inclusive, ISO date of the first one, whether the count exceeds the nominal periods (26 biweekly, 52 weekly)].
Why this case matters
Annualization factors change in 27-pay-period years; missing or extra pay dates distort per-period withholding.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression 0 | [27, "2023-12-31", true] | [26, "2024-01-14", false] | 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 ↗