Skip to content

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

License

Notifications You must be signed in to change notification settings

Nembie/calculator-home-loan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks