diff --git a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html
index 3f84d81bf6..314c083b3a 100644
--- a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html
+++ b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html
@@ -159,6 +159,16 @@
title="Return on Average Investment (total return with dividends)"
>(ROAI)
+ } @else if (
+ user?.settings?.performanceCalculationType ===
+ PerformanceCalculationType.ROI
+ ) {
+ (ROI)
}
diff --git a/apps/client/src/app/components/user-account-settings/user-account-settings.html b/apps/client/src/app/components/user-account-settings/user-account-settings.html
index 2d4c090dd2..1889bd88ea 100644
--- a/apps/client/src/app/components/user-account-settings/user-account-settings.html
+++ b/apps/client/src/app/components/user-account-settings/user-account-settings.html
@@ -39,7 +39,6 @@
Return on Average Investment (ROAI)
+ Return on Investment (ROI)
diff --git a/apps/client/src/app/pages/portfolio/analysis/analysis-page.html b/apps/client/src/app/pages/portfolio/analysis/analysis-page.html
index 96dfe24c45..3ca335774d 100644
--- a/apps/client/src/app/pages/portfolio/analysis/analysis-page.html
+++ b/apps/client/src/app/pages/portfolio/analysis/analysis-page.html
@@ -264,6 +264,16 @@
title="Return on Average Investment (total return with dividends)"
>(ROAI)
+ } @else if (
+ user?.settings?.performanceCalculationType ===
+ PerformanceCalculationType.ROI
+ ) {
+ (ROI)
}
diff --git a/libs/common/src/lib/dtos/update-user-setting.dto.ts b/libs/common/src/lib/dtos/update-user-setting.dto.ts
index d46982e707..87c1f9a054 100644
--- a/libs/common/src/lib/dtos/update-user-setting.dto.ts
+++ b/libs/common/src/lib/dtos/update-user-setting.dto.ts
@@ -5,6 +5,7 @@ import type {
HoldingsViewMode,
ViewMode
} from '@ghostfolio/common/types';
+import { PerformanceCalculationType } from '@ghostfolio/common/types/performance-calculation-type.type';
import { IsCurrencyCode } from '@ghostfolio/common/validators/is-currency-code';
import {
@@ -96,6 +97,10 @@ export class UpdateUserSettingDto {
@IsOptional()
locale?: string;
+ @IsIn([PerformanceCalculationType.ROAI, PerformanceCalculationType.ROI])
+ @IsOptional()
+ performanceCalculationType?: PerformanceCalculationType;
+
/**
* The target financial amount the user aims to reach before retiring.
* Can be explicitly set to null to clear the value and calculate it dynamically.