FAILURE MAP
← Case archive

FA-63070 / Insurance premium rating / Member archive

Bonus-malus class transitions: Claim-free years fall below class 1 · case 05

A long claim-free driver drops to class 0 and is rated with the worst coefficient via negative indexing.

Member previewVariant 5 · 3 implementations · 9 checks per implementation

Case contract

Input start class 1..18 (else 'invalid class'), claims per year, coeffs (18 per mille values, class 1 best), base. Per year: 0 claims -> class-1 (floor 1); 3+ claims -> class 18; otherwise class+3*claims (ceiling 18). Return [class after each year, floor(base*coeff/1000+1/2) for the final class].

Why this case matters

No-claims discount systems compound a transition error across every renewal.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
claim-free years reach best class[[2, 1, 0, -1], 48785][[2, 1, 1, 1], 26114]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 ↗