Calculation Methodology
Each calculator is implemented as a server-side PHP calculation with a defined list of accepted inputs. The API checks the calculator slug, validates the input types, enforces the configured ranges and rejects invalid choices before returning a result. User-supplied text is rendered as text in the browser rather than inserted as HTML.
Formula notes are provided on individual calculator pages. Financial projections assume the rate, payment pattern or cost structure specified in the note. Tax estimates are limited to the statutory components explicitly described; they do not claim to model every exemption, incentive, filing status, sector rule, assessment procedure or subsequent legal change.
The codebase includes a command-line regression test suite for all calculator handlers, representative outputs and boundary conditions. A passing software test demonstrates that the implemented formula returns the expected test result; it does not establish that a tax assumption is legally correct or that a qualified professional has reviewed the page.
Release testing should include PHP syntax validation, regression tests, browser checks on desktop and mobile, and comparison with independently calculated examples. Where an issue is found and fixed, a material correction should be recorded in the public corrections log.
When a statutory calculation is updated, the page copy and the underlying formula should be checked together against the current law or official guidance. Visitors should confirm material decisions with the relevant authority or a qualified professional.