mortgage-calculate
Calculate mortgage payments.
Install
npm install mortgage-calculate
bower install mortgage-calculate
Usage
Calculate monthly payment
const mortgageCalculate = ; const result = ; console;/*{ loanAmount: 10000, totalCost: 186709.61139815467, monthlyPayment: 518.6378094393185, APR: 4.7, termYears: 30}*/
Calculate max loan amount
const result = ; console;/*{ loanAmount: 96406.3920716719, totalCost: 180000, monthlyPayment: 500, APR: 4.7, termYears: 30}*/
Test
npm test
License
MIT