Fix simulate_payoff 4th return value double-counting minimums #20

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

Severity: medium
Category: bug
Location: debts.py:45-46,98

Problem

Line 98 returns total_minimum + extra_monthly though extra_monthly already includes minimums, overstating monthly outflow. Currently discarded by app.py but a latent trap.

Suggested fix

Return extra_monthly alone as the monthly total.

Filed by automated code review.

**Severity:** medium **Category:** bug **Location:** `debts.py:45-46,98` ### Problem Line 98 returns `total_minimum + extra_monthly` though extra_monthly already includes minimums, overstating monthly outflow. Currently discarded by app.py but a latent trap. ### Suggested fix Return `extra_monthly` alone as the monthly total. _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#20
No description provided.