上QQ阅读APP看书,第一时间看更新
Calculating when you can retire
If you have tried to call simulatePlan from the Scala Console, you probably tried different values for nbOfMonths and observed the resulting capital at retirement and after death. It would be useful to have a function that finds the optimal nbOfMonths so that you have enough capital to never run out of money during your retirement.