Quickly calculate monthly payments and the total amount of interest paid for a fixed rate loan.
Installation
First install node.js. Then:
npm install loan-calc --save
Usage
Require the module and pass the amount of the loan, annual rate, and length of loan in months.
var LoanCalc = ; LoanCalc;// returns 1581.59 LoanCalc;// returns 186511.57
You can also pass the loan amount as a US currency formatted string:
LoanCalc;// returns 1581.59