1.0.0 • Published 1 year ago

calculator-home-loan v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

🏠 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.