From: Erik Mackdanz Date: Sat, 7 Apr 2018 15:42:41 +0000 (-0500) Subject: Add mortgage to amortize X-Git-Url: https://git.humopery.space/?a=commitdiff_plain;h=a760d93387ec3888d29ddfe51ccfeaaf353bc946;p=private%2Fledgerfile.git Add mortgage to amortize --- diff --git a/amortize.py b/amortize.py index ff88d6e..c895c1b 100644 --- a/amortize.py +++ b/amortize.py @@ -103,3 +103,12 @@ colorado_payments = amortize_to_end(payment_date, [(19,565.76)], 0.0525/365.0) print(colorado_payments) + +ledger.session.close_journal_files() + +(payment_date,balance) = last_payment_balance("Liabilities:Mortgage Principal:Harper") +mortgage_payments = amortize_to_end(payment_date, + balance, + [(2,1048.50),(16,350)], + 0.04375/365.0) +print(mortgage_payments)