Skip to content

Instantly share code, notes, and snippets.

View jhannah-mm's full-sized avatar

Jay Hannah jhannah-mm

View GitHub Profile
@jhannah
jhannah / gist:4c74c240ba987edea6e5f0f72a342ab3
Created December 16, 2021 20:42
Amortization schedule w/ principle-only payments
Here's a little Perl script I wrote:
https://github.com/jhannah/sandbox/blob/main/amortize.pl
✗ ./amortize.pl
Usage:
amortize.pl --principle=176000 --periods=180 --interest_rate=2.13 \
--principle_payment=12:2000 \
--principle_payment=24:2000
Take out a $176,000 loan over 15 years at 2.13% APR.
@jhannah
jhannah / gist:7961433dcd9195f907d9d8e82ddb9564
Last active December 29, 2023 22:09
Mortgage: Amortization schedule / payments
2.13% APR
Payment 1: Aug 1 2021
$ pip3 install amortization (https://github.com/roniemartinez/amortization)
$ amortize --principal 176000 --period 180 --interest-rate 0.0213 --schedule
Number Amount Interest Principal Balance
-------- ---------- ---------- ----------- ----------
1 1,143.14 312.40 830.74 175,169.26 Aug 1 2021
2 1,143.14 310.93 832.21 174,337.05
3 1,143.14 309.45 833.69 173,503.36