Total Savings Calculator
(fixed interest and fixed monthly deposits)
There are at least three ways in which this form could be improved:
Of course the form does not adjust for varrying inflation rates or give you the option to deposit different amounts over different periods of time. To keep the calculation and the form relatively simple we will just pretend there is no such thing as inflation and no other means of investing funds beyond fixed amount monthly deposits. Below is the complete source code for this example. The comments in the code provide an explanation of how it works.