cfpb / amortize

A node module to calculate the interest paid, principal paid, remaining balance, and monthly payment of a loan.
Creative Commons Zero v1.0 Universal
58 stars 19 forks source link

Added support for equal principal payment #14

Closed yonatann closed 6 years ago

contolini commented 6 years ago

Hey @yonatann! Thanks so much for this feature. When you have moment can you add a few tests that include the new config options?

yonatann commented 6 years ago

Sure, I've added tests to the test.js file.

I also added another option: 'paritalMonthOffset' You can use this option to offset the payment day of the month e.g. If you take the loan on the 15th (of a 30 day month) and you would like the payments to be made on the 1st of each month then you set this option to 0.5

avantassel commented 6 years ago

@yonatann I added extra principal payment a few years ago, I'm using it in https://github.com/avantassel/finterest

contolini commented 6 years ago

Thanks @yonatann -- published as part of v1.0.0!