Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nembie/calculator-home-loan
A JavaScript open-source package to easily calculate monthly mortgage payments, total repayment, and total interest.
https://github.com/nembie/calculator-home-loan
home-loan home-loan-calculator javascript nodejs
Last synced: 26 days ago
JSON representation
A JavaScript open-source package to easily calculate monthly mortgage payments, total repayment, and total interest.
- Host: GitHub
- URL: https://github.com/nembie/calculator-home-loan
- Owner: Nembie
- License: mit
- Created: 2024-04-13T09:27:18.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-13T10:02:43.000Z (10 months ago)
- Last Synced: 2024-12-20T02:28:40.336Z (about 1 month ago)
- Topics: home-loan, home-loan-calculator, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## 🏠 calculator-home-loan
[![GitHub](https://img.shields.io/github/license/Nembie/calculator-home-loan?style=flat-square)](LICENSE.md)
[![GitHub issues](https://img.shields.io/github/issues/Nembie/calculator-home-loan?style=flat-square)](https://github.com/Nembie/calculator-home-loan/issues)
[![GitHub Release](https://img.shields.io/github/v/release/Nembie/calculator-home-loan?style=flat-square)](https://github.com/Nembie/calculator-home-loan/releases)A JavaScript open-source package to easily calculate monthly mortgage payments, total repayment, and total interest.
### ⚙️ Install
```bash
yarn add calculator-home-loan
```### 🚨 Example
```javascript
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](https://github.com/Nembie/calculator-home-loan/blob/main/LICENSE.md).