|
@ -783,6 +783,8 @@ export class RoaiPortfolioCalculator extends PortfolioCalculator { |
|
|
? totalGrossPerformance.div( |
|
|
? totalGrossPerformance.div( |
|
|
timeWeightedAverageInvestmentBetweenStartAndEndDate |
|
|
timeWeightedAverageInvestmentBetweenStartAndEndDate |
|
|
) |
|
|
) |
|
|
|
|
|
: totalGrossPerformance |
|
|
|
|
|
? new Big(1) |
|
|
: new Big(0); |
|
|
: new Big(0); |
|
|
|
|
|
|
|
|
const grossPerformancePercentageWithCurrencyEffect = |
|
|
const grossPerformancePercentageWithCurrencyEffect = |
|
@ -792,6 +794,8 @@ export class RoaiPortfolioCalculator extends PortfolioCalculator { |
|
|
? totalGrossPerformanceWithCurrencyEffect.div( |
|
|
? totalGrossPerformanceWithCurrencyEffect.div( |
|
|
timeWeightedAverageInvestmentBetweenStartAndEndDateWithCurrencyEffect |
|
|
timeWeightedAverageInvestmentBetweenStartAndEndDateWithCurrencyEffect |
|
|
) |
|
|
) |
|
|
|
|
|
: totalGrossPerformanceWithCurrencyEffect |
|
|
|
|
|
? new Big(1) |
|
|
: new Big(0); |
|
|
: new Big(0); |
|
|
|
|
|
|
|
|
const feesPerUnit = totalUnits.gt(0) |
|
|
const feesPerUnit = totalUnits.gt(0) |
|
@ -809,6 +813,8 @@ export class RoaiPortfolioCalculator extends PortfolioCalculator { |
|
|
? totalNetPerformance.div( |
|
|
? totalNetPerformance.div( |
|
|
timeWeightedAverageInvestmentBetweenStartAndEndDate |
|
|
timeWeightedAverageInvestmentBetweenStartAndEndDate |
|
|
) |
|
|
) |
|
|
|
|
|
: totalNetPerformance |
|
|
|
|
|
? new Big(1) |
|
|
: new Big(0); |
|
|
: new Big(0); |
|
|
|
|
|
|
|
|
const netPerformancePercentageWithCurrencyEffectMap: { |
|
|
const netPerformancePercentageWithCurrencyEffectMap: { |
|
@ -902,6 +908,8 @@ export class RoaiPortfolioCalculator extends PortfolioCalculator { |
|
|
|
|
|
|
|
|
netPerformancePercentageWithCurrencyEffectMap[dateRange] = average.gt(0) |
|
|
netPerformancePercentageWithCurrencyEffectMap[dateRange] = average.gt(0) |
|
|
? netPerformanceWithCurrencyEffectMap[dateRange].div(average) |
|
|
? netPerformanceWithCurrencyEffectMap[dateRange].div(average) |
|
|
|
|
|
: netPerformanceWithCurrencyEffectMap[dateRange] |
|
|
|
|
|
? new Big(1) |
|
|
: new Big(0); |
|
|
: new Big(0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|