File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -234,10 +234,11 @@ The output should look something like this:
2342344 10736.44 497581.83
2352355 13420.55 496970.98
236236...
237- 308 875705.88 674.44
238- 309 878389.99 -2006.86
239- Total paid 878389.99
240- Months 309
237+ 308 874705.88 2971.43
238+ 309 877389.99 299.7
239+ 310 880074.1 -2383.16
240+ Total paid 880074.1
241+ Months 310
241242```
242243
243244### Exercise 1.11: Bonus
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments