npm's personal messenger

compound-interest

0.3.1 • Public • Published

compound-interest Build Status JavaScript Style Guide

compound interest of initial + series

installation

$ yarn add compound-interest

usage

const compound = require('compound-interest');
 
const opts = {
  initial: 1000,  // initial balance
  monthly: 100,   // monthly addition
  interest: 5,    // +% interest
  compound: 12,   // compounding factor (1, 12, 365...)
  years: 5       // years
};
 
compound(opts); // 8083
compound.verbose(opts); // [1000, 2279, 3623, 5036, 6522, 8083]

license

mit

install

npm i compound-interest

Downloadsweekly downloads

87

version

0.3.1

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability