Browse Source

Add safe withdrawal rate to user settings

pull/5629/head
Thomas Kaul 1 month ago
parent
commit
56a96c87d3
  1. 5
      apps/client/src/app/pages/portfolio/fire/fire-page.component.ts

5
apps/client/src/app/pages/portfolio/fire/fire-page.component.ts

@ -63,7 +63,10 @@ export class GfFirePageComponent implements OnDestroy, OnInit {
this.fireWealth = new Big(10000);
}
this.withdrawalRatePerYear = this.fireWealth.mul(4).div(100);
this.withdrawalRatePerYear = this.fireWealth.mul(
this.user.settings.safeWithdrawalRate
);
this.withdrawalRatePerMonth = this.withdrawalRatePerYear.div(12);
this.isLoading = false;

Loading…
Cancel
Save