FA-59234 / Payroll withholding rules / Member archive
Pay dates in a calendar year: year end date · case 04
In leap years a December 31 pay date is left out of the count.
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 | [26, "2024-01-02", false] | [27, "2024-01-02", true] | 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 ↗