FA-63280 / Insurance premium rating / Member archive
Mid-term endorsement pro-rata premium: Endorsements effective on expiry are accepted · case 05
An endorsement dated on the expiration date returns zero instead of an error.
Case contract
Input start, end (days), annual premium, endorsements [[effective day, new annual premium]]. Dates must satisfy start<=d<end and be non-decreasing, else 'invalid endorsement date'. Each endorsement charges (new-current)*(end-d)/(end-start) rounded half away from zero, and the new premium becomes current.
Why this case matters
Endorsement premiums must chain from the latest in-force rate and prorate on the actual term length.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| endorsement on expiry rejected | [0] | "invalid endorsement date" | 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 ↗