Browse Source

Fix typo

pull/763/head
Thomas 3 years ago
parent
commit
466078ff92
  1. 4
      apps/api/src/app/portfolio/portfolio-calculator-new.ts

4
apps/api/src/app/portfolio/portfolio-calculator-new.ts

@ -922,7 +922,7 @@ export class PortfolioCalculatorNew {
: new Big(0) : new Big(0)
: // This formula has the issue that buying more units with a price : // This formula has the issue that buying more units with a price
// lower than the average buying price results in a positive // lower than the average buying price results in a positive
// performance even if the market pricse stays constant // performance even if the market price stays constant
unitPriceAtEndDate unitPriceAtEndDate
.div(averagePriceAtEndDate) .div(averagePriceAtEndDate)
.div( .div(
@ -944,7 +944,7 @@ export class PortfolioCalculatorNew {
: new Big(0) : new Big(0)
: // This formula has the issue that buying more units with a price : // This formula has the issue that buying more units with a price
// lower than the average buying price results in a positive // lower than the average buying price results in a positive
// performance even if the market pricse stays constant // performance even if the market price stays constant
unitPriceAtEndDate unitPriceAtEndDate
.minus(feesPerUnit) .minus(feesPerUnit)
.div(averagePriceAtEndDate) .div(averagePriceAtEndDate)

Loading…
Cancel
Save