From 925665c93a733d0e1c2fc791295186c13d3ba080 Mon Sep 17 00:00:00 2001 From: zochao Date: Thu, 23 Feb 2017 11:59:06 -0800 Subject: [PATCH] extra p again --- mortgage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mortgage.py b/mortgage.py index 0452bb3..772baf9 100755 --- a/mortgage.py +++ b/mortgage.py @@ -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=[]):