Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "node-irr", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A Node.js package that provides an easy and customizable way to calculate internal rate of return.", | ||
@@ -5,0 +5,0 @@ "author": "Eric Malachias", |
@@ -29,2 +29,3 @@ # node-irr | ||
// -> 0.032970974180430046 | ||
// -> ~3.29% | ||
``` | ||
@@ -42,8 +43,11 @@ | ||
{ amount: -10, date: '20180101' }, | ||
{ amount: 5, date: '20180201' }, | ||
{ amount: 0.1, date: '20180301' }, | ||
{ amount: 10, date: '20180201' }, | ||
{ amount: 0.05, date: '20180301' }, | ||
] | ||
console.log(xirr(data)) | ||
// -> { days: 60, rate: -0.020988389740661084 } | ||
// -> { days: 60, rate: 0.00016018311916865535 } | ||
// ^^^^^^^^^^^^^^^^^^^^^^ -> daily rate | ||
// -> ~0.016% per day | ||
// -> ~6.02% per year | ||
``` | ||
@@ -50,0 +54,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89
36387
34
480