1/**
2 Install guide: Using with TypeScript
3 https://www.npmjs.com/package/interest-bankjs
4
5 npm i interest-bankjs
6
7 Using with Javascript:
8 https://github.com/kfiku/LoanJS
9
10 npm install loanjs
11
12
13**/
14
15import { Loan } from 'interest-bankjs';
16var loan = Loan(
17 1000, // amount
18 12, // installments number
19 5, // interest rate
20 true // diminishing
21);
22
23// With JavaScript
24var LoanJS = require('loanjs');
25var loan = new LoanJS.Loan(
26 1000, // amount
27 12, // installments number
28 5, // interest rate
29 true // diminishing
30);
31
32
33