Browse Source

Respect end date in performance chart calculation

Co-Authored-By: gizmodus <11334553+gizmodus@users.noreply.github.com>
pull/1267/head
Thomas 3 years ago
parent
commit
04e3e4e6c7
  1. 4
      apps/api/src/app/portfolio/portfolio-calculator.ts

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

@ -967,6 +967,10 @@ export class PortfolioCalculator {
feesAtStartDate = fees; feesAtStartDate = fees;
grossPerformanceAtStartDate = grossPerformance; grossPerformanceAtStartDate = grossPerformance;
} }
if (i === indexOfEndOrder) {
break;
}
} }
timeWeightedGrossPerformancePercentage = timeWeightedGrossPerformancePercentage =

Loading…
Cancel
Save