Skip to content

Commit

Permalink
extra p again
Browse files Browse the repository at this point in the history
  • Loading branch information
zochao committed Feb 23, 2017
1 parent 4ee9cbe commit 925665c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mortgage.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def total_payout(self, extra_principle_payments=[]):
# should use sum([sum(m) for m in monthly_payments]) but i m too lazy
return self.monthly_payment() * self.loan_months()
else:
monthly_payments = list(self.monthly_payment_schedule(extra_rinciple_payments=extra_principle_payments))
monthly_payments = list(self.monthly_payment_schedule(extra_principle_payments=extra_principle_payments))
return sum([sum(m) for m in monthly_payments])

def monthly_payment_schedule(self, extra_principle_payments=[]):
Expand Down

0 comments on commit 925665c

Please sign in to comment.