Fix payoff_months divergence guard when monthly_charges>0 #22

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

Severity: medium
Category: bug
Location: debts.py:152-167

Problem

Guard is if monthly_charges==0 and b>=balance: return None; with ongoing charges exceeding payment it never fires and burns 600 iterations every page load before returning None.

Suggested fix

Change to if b >= balance: return None.

Filed by automated code review.

**Severity:** medium **Category:** bug **Location:** `debts.py:152-167` ### Problem Guard is `if monthly_charges==0 and b>=balance: return None`; with ongoing charges exceeding payment it never fires and burns 600 iterations every page load before returning None. ### Suggested fix Change to `if b >= balance: return None`. _Filed by automated code review._
tonym added the
bug
severity:medium
labels 2026-06-06 19:58:13 +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#22
No description provided.