@CWWhitney I cut the old part away from the model to make it more handy. I fixed the problem of the for loop while using easy multiplications after the "compound interest calculation". We can discuss to check if it is still logical.
To save them: Old parts and equations are still in the code but deactivated while using hashtags.
An html of your .Rmd output http://htmlpreview.github.io/?https://github.com/marruett/Calluna_low_prophy_V1/blob/master/Calluna_model.html