xirr-calculator
v1.0.1
Published
Helps to get Extended Internal Rate of Returns
Downloads
12
Readme
Internal Rate of Return
import getXIRR from 'xirr-calculator';
//EMI AMOUNT per month
const emiAmount = 1000
//TOTAL MONTHS
const n = 12
//FINAL AMOUNT
const finalAmount = 1347
const rate = getXIRR(emiAmount, n, finalAmount);
console.log(rate); // Prints 15.37 (Anual)