Comparing version 1.1.3 to 1.1.4
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
// function savingsAfterYear | ||
@@ -57,9 +60,7 @@ // Calculates the difference in accumulated value based on identical returns, but difference in costs | ||
var returns = 1 + (numberOfStandardDeviations * standardDeviation + average); | ||
var returnAtYear = Math.pow(1 + average, atYear) + numberOfStandardDeviations * standardDeviation * Math.sqrt(atYear); | ||
var returnAtYear = Math.pow(returns, atYear); | ||
return initialValue * returnAtYear; | ||
} | ||
module.exports = { differenceAfterYear: differenceAfterYear, differenceAfterYearWithFirstYear: differenceAfterYearWithFirstYear, valueAtYearWithStandardDeviation: valueAtYearWithStandardDeviation }; | ||
exports.default = { differenceAfterYear: differenceAfterYear, differenceAfterYearWithFirstYear: differenceAfterYearWithFirstYear, valueAtYearWithStandardDeviation: valueAtYearWithStandardDeviation }; |
{ | ||
"name": "algostrata", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "calculation library for algostrata", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
2938
50