UNPKG

@bmancini55/finance

Version:

Finance utilities for JavaScript

11 lines 313 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.calcReturn = void 0; /** * Returns the gain or loss percentage */ function calcReturn(principal, gain) { return (principal + gain) / principal - 1; } exports.calcReturn = calcReturn; //# sourceMappingURL=calc-return.js.map