Skip to content

dipaktelangre/jsfinancial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsfinancial

Introduction

Pure Javascript library for Financial calculations

Getting Started

npm i jsfinancial --save

or

  • Clone repo from here.
  • Extract the file finance.js from the project and include it in your application on the client side.

Example Usage


    var Finance = require('jsfinancial');
    var cal = new Finance();
    // To calculate EMI
    // 10 L loan for 5 yrs with 10% anual intrest
    cal.EMI(1000000, 10 / 12, 12 \* 5);  
    // => 21247.04
 
### Typescript
import { Finance } from 'jsfinancial'
let cal = new Finance();
// To calculate EMI
cal.EMI(1000000, 10 / 12, 12 * 5);
// => 21247.04

Tests

npm test

Tests in watch mode

npm run test:watch

Available Methods

EMI
Finance.EMI(principal: number, rate: number, tenure: number): number;

Calculate EMI (Equated Monthly Installment) of any given loan amount (principal) for given tenure and intrest rate


cal.EMI(1000000, 10 / 12, 12 * 5);
// => 21247.04

Contributing

Contributions are welcome

To Do

  • Grow library by adding more function

About

Financial toolkit for JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages