Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Berechnung des Kapitalstocks #1

Closed
alexmpunkt opened this issue Mar 20, 2018 · 0 comments · Fixed by #9
Closed

Berechnung des Kapitalstocks #1

alexmpunkt opened this issue Mar 20, 2018 · 0 comments · Fixed by #9
Assignees

Comments

@alexmpunkt
Copy link
Member

alexmpunkt commented Mar 20, 2018

Hier geht es darum zu berechnen, wie Groß der aufgebaute Kapitalstock sein muss, damit das Geld bei gegebener monatlicher Entnahme bis zum geschätzten Rentenende reicht.
Ohne Verzinsung wäre es einfach monatliche Entnahme * 12 * Rentenzeitraum R.
Da sich das Angelegte Geld aber über die Zeit weiter vermehrt durch die Verzinsung muss dies entsprechend berücksichtigt werden.

Ich brauche also zum Beispiel vor der letzten Entnahme nur 23.300,97€ mit einer Verzinsung von 3% damit ich 24.000€ entnehmen kann, da 699,03€ Zinsen anfallen.

Dies bedeutet:

Gegeben:

Rentenzeitraum R
Monatliche Entnahme E
Zinssatz Z

Gesucht:

Kapitalstock KS

Berechnung

Ist als "pseudo"-Code einfacher. Es müsste glaube ich so aussehen:

$kapitalstock = 0;
for($i=1;$i<=R;$i++){
     $kapitalstock = $kapitalstock/(1+Z);
     $kapitalstock+= E;
}

Testfälle


R = 23
E = 2.000€
Zinssatz = 3%
KS = 406.486,00€


R = 25
E = 1.550,00€
Zinssatz = 2,5%
KS = 351.260.74€


R = 28
E = 999,00€
Zinssatz = 2%
KS = 260.222,29€


R = 21
E = 2.345€
Zinssatz = 1,5%
KS = 511.265,50€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant