@bmancini55/finance
Version:
Finance utilities for JavaScript
11 lines • 313 B
JavaScript
;
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