Severity: Medium
src/lib/arrest-calculator.ts:178-184 scales impound/suspension into modified by result.sentenceMultiplier, while the per-charge column displays the raw impound/suspension (arrest-calculator-results.tsx:445-446).
Repro: One Attempt (0.5x) charge with 10-day impound shows "10 days" in its row but contributes only 5 to the total. Row and summary disagree.
Impound/suspension are administrative penalties that arguably should not scale with attempt/conspiracy sentence multipliers at all. Either way the row-vs-total mismatch is visibly wrong.
Fix: Decide one behavior — most likely drop the * sentenceMultiplier on impound/suspension so totals and per-charge agree; if scaling is intended, scale the per-charge display too.
Filed from a code audit of the current master. Line numbers are approximate.
Severity: Medium
src/lib/arrest-calculator.ts:178-184scales impound/suspension intomodifiedbyresult.sentenceMultiplier, while the per-charge column displays the rawimpound/suspension(arrest-calculator-results.tsx:445-446).Repro: One Attempt (0.5x) charge with 10-day impound shows "10 days" in its row but contributes only 5 to the total. Row and summary disagree.
Impound/suspension are administrative penalties that arguably should not scale with attempt/conspiracy sentence multipliers at all. Either way the row-vs-total mismatch is visibly wrong.
Fix: Decide one behavior — most likely drop the
* sentenceMultiplieron impound/suspension so totals and per-charge agree; if scaling is intended, scale the per-charge display too.Filed from a code audit of the current
master. Line numbers are approximate.