calculator-home-loan
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

🏠 calculator-home-loan

GitHub GitHub issues GitHub Release

A JavaScript open-source package to easily calculate monthly mortgage payments, total repayment, and total interest.

⚙️ Install

yarn add calculator-home-loan

🚨 Example

import calculateHomeLoan from 'calculator-home-loan';

const loan = 80000;
const years = 30;
const rate = 4.5;
const frequency = 12;

calculateHomeLoan(loan, years, rate, frequency);

// Output
{
    monthlyPayment: 405.35,
    totalPayment: 145925.37,
    totalInterest: 65925.37
}

🤝 Contribution

If you find any issues or have suggestions for improvements, feel free to open a pull request or issue. Your contribution is highly appreciated.

🔨 Test

npx ava

📝 License

This package is open-sourced software licensed under the MIT license.

Package Sidebar

Install

npm i calculator-home-loan

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

5.77 kB

Total Files

5

Last publish

Collaborators

  • nembie