Recompute freed minimums each month in simulate_payoff #29

Open
opened 2026-06-06 19:58:15 +00:00 by tonym · 0 comments

Severity: low
Category: bug
Location: debts.py:58-93

Problem

Freed minimums when a debt hits zero are added back to extra but total_minimum was computed once up front, slightly delaying the payoff month immediately after each payoff event.

Suggested fix

Recompute total_minimum from min(minimum, balance) inside the monthly loop.

Filed by automated code review.

**Severity:** low **Category:** bug **Location:** `debts.py:58-93` ### Problem Freed minimums when a debt hits zero are added back to extra but total_minimum was computed once up front, slightly delaying the payoff month immediately after each payoff event. ### Suggested fix Recompute total_minimum from `min(minimum, balance)` inside the monthly loop. _Filed by automated code review._
tonym added the
bug
severity:low
labels 2026-06-06 19:58:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bonna61/Moon-Household-Budget#29
No description provided.