Replace 30-day-month BNPL approximation with calendar math #24

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

Severity: medium
Category: correctness
Location: debts.py:12-16,101-109

Problem

'monthly': 30 and raw day arithmetic in bnpl_payoff_date drift up to several days, so the displayed payoff month can be wrong.

Suggested fix

Step with relativedelta(months=i) per remaining payment.

Filed by automated code review.

**Severity:** medium **Category:** correctness **Location:** `debts.py:12-16,101-109` ### Problem `'monthly': 30` and raw day arithmetic in bnpl_payoff_date drift up to several days, so the displayed payoff month can be wrong. ### Suggested fix Step with `relativedelta(months=i)` per remaining payment. _Filed by automated code review._
tonym added the
correctness
severity:medium
labels 2026-06-06 19:58:14 +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#24
No description provided.