We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11b0a83 commit e030d69Copy full SHA for e030d69
1 file changed
Solutions/1_10/mortgage.py
@@ -15,7 +15,7 @@
15
principal = principal * (1+rate/12) - payment
16
total_paid = total_paid + payment
17
18
- if month >= extra_payment_start_month and month < extra_payment_end_month:
+ if month > extra_payment_start_month and month <= extra_payment_end_month:
19
principal = principal - extra_payment
20
total_paid = total_paid + extra_payment
21
0 commit comments