Your savings plan
What you put in on day one.
Added at the end of every month.
A long-term stock-market average is often quoted around 5–7%.
Between 1 and 40 years.

CalcBuilder example

Savings Growth with Compound Interest

September 21, 2026

Savings Growth with Compound Interest shown on the live frontend, with a calculated result.

Live result on the frontend

Excel-powered savings projector: enter a deposit, a monthly contribution and a return and see the balance grow year by year.

The Savings Growth calculator is powered by a real Excel workbook. Calc Builder writes the visitor’s numbers into the sheet, lets the workbook recalculate and reads the results back to draw a dashboard and a year-by-year chart.

What it calculates

A visitor enters a starting deposit, a monthly contribution, an expected annual return and a number of years. The workbook returns:

  • Final balance — the future value of the deposit plus every monthly contribution, compounded monthly.
  • Total contributed — everything the visitor puts in over the period.
  • Interest earned — the growth on top of the contributions, and its share of the final balance.
  • Yearly table — contributions, interest and balance for every year, which the PHP code turns into a stacked bar chart.

How it’s built

The Spreadsheet screen holds the workbook and four input mappings (each Number field to a cell such as B3) and three output mappings (result cells back into PHP variables). The execution mode is custom, so the //[EXCEL] marker in the PHP Code shows exactly where the sheet runs.

After the marker $objPHPExcel is the loaded workbook, so the PHP Code also reads the yearly table (rows 14–53) to build the chart. The workbook is available for download below: import the calculator, then upload the Excel file on its Spreadsheet screen.

Savings Growth with Compound Interest - input form on the frontend

The input form as your visitors see it, styled with the Form Layout.

Savings Growth with Compound Interest - Spreadsheet screen

The Spreadsheet screen: the workbook is uploaded here and the execution mode is set.

Savings Growth with Compound Interest - input field mapping

Input mapping: each Calc Builder variable is written into a cell of the workbook before it recalculates.

Savings Growth with Compound Interest - PHP Code screen

The PHP Code: the //[EXCEL] marker runs the sheet, then the yearly table is read back to draw the chart.

Want this exact example on your own site?

Download the file above, then in your Joomla admin open Components › CalcBuilder › Import and upload it — it's the same file you'd get from that component's own Export button, so it drops in as a ready-to-use, fully working copy in one step.

This example is powered by an Excel workbook. After importing the calculator, open its Spreadsheet screen, upload the Excel file below and save — the cell mappings come with the import.