Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e030d69

Browse files
committed
Minor refinement on range
1 parent 11b0a83 commit e030d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Solutions/1_10/mortgage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
principal = principal * (1+rate/12) - payment
1616
total_paid = total_paid + payment
1717

18-
if month >= extra_payment_start_month and month < extra_payment_end_month:
18+
if month > extra_payment_start_month and month <= extra_payment_end_month:
1919
principal = principal - extra_payment
2020
total_paid = total_paid + extra_payment
2121

0 commit comments

Comments
 (0)