School fees results
"); resultsWin.document.writeln("Taking annual school fees today to be £" + inputForm.annual_fee.value + "");
resultsWin.document.writeln("which increase 5% annually and an investment return of " + inputForm.yield.value + "%.");
resultsWin.document.writeln("You want to pay for " + inputForm.edu_length.value + " years education");
resultsWin.document.writeln("starting in " + inputForm.years_before.value + " years time.
");
resultsWin.document.writeln("Below is a table of the monthly investments you will have to make and the education fees");
resultsWin.document.writeln("due each year.
Year | Monthly investment | Annual school fees |
" + (i + 1) + " | " + getDisplayNumber(mth_totals[i]) + " | " + getDisplayNumber(cost_this_year) + " |
"); resultsWin.document.writeln("
Your Final summary:
"); resultsWin.document.writeln("- Total invested: £" + getDisplayNumber(total_invested) + "
"); resultsWin.document.writeln(" - Total cost of education: £" + getDisplayNumber(total_cost) + "
"); resultsWin.document.writeln(" - Total interest: £" + getDisplayNumber(total_cost - total_invested) + "
"); resultsWin.document.writeln("