Skip to content
Moonsoft Software SolutionsDEMO
SITE

Homemoonsoft.es ↗

Demo SiteCalc Builder

17 of 21

Income
What reaches your account each month.
Monthly spending
Rent or mortgage.
Groceries and eating out.
Fuel, tickets, parking.
Energy, water, phone, internet.
Everything fun.

CalcBuilder example · Charts · Starter

Monthly Budget Breakdown

December 1, 2026

Monthly Budget Breakdown shown on the live frontend, with a calculated result.

Live result on the frontend

Where your income goes, drawn as a doughnut chart.

Video walkthrough

How the example is built, in under two minutes. English audio and subtitles.

What it calculates

A visitor enters a monthly income and five spending categories. The calculator shows:

  • Money left each month — income minus all spending.
  • Savings rate — the share of income that is not spent.
  • Doughnut chart — one slice per category, plus what is left to save.

How it’s built

The PHP Code builds two arrays: $labels with the category names and $amounts with the values.

On the Charts screen there is one chart called budget, of type Doughnut, with PHP variables as data source, labels as labels and one series whose values are amounts.

In the Exit Layout, the tag ##chart_budget## marks the place where the chart is drawn. Nothing else is needed: no JavaScript and no chart library to install.

Charts require the Calc Builder version that includes the Charts screen.

Monthly Budget Breakdown - charts on the frontend

The charts as your visitors see them.

Monthly Budget Breakdown - Charts screen

The Charts screen: type, data source, labels and data series of each chart.

Monthly Budget Breakdown - Exit Layout

The Exit Layout: each ##chart_name## tag marks where a chart is drawn.

Monthly Budget Breakdown - PHP Code screen

The PHP Code, which prepares the figures and the arrays used by the charts.

Monthly Budget Breakdown - input form on the frontend

The input form, styled with the Form Layout.

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, charts included.