amortizationjs

0.0.7 • Public • Published

amortization.js

amortization.js is a javascript package that calculates payment information for a loan or a mortgage.

Installation

npm i amortizationjs

Usage

import amortize from 'amortizationjs';
const totalAmount = 200_000;
const downPayment = 50_000;
const interestRate = 5;
const years = 30;
const paymentsPerYear = 12;
const loan = new Loan(
  totalAmount,
  downPayment,
  interestRate,
  years,
  paymentsPerYear
);

console.log(loan.total);
console.log(loan.payments);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Package Sidebar

Install

npm i amortizationjs

Weekly Downloads

3

Version

0.0.7

License

MIT

Unpacked Size

9.51 kB

Total Files

8

Last publish

Collaborators

  • serv