Methodology and testing
This page explains how a legal rule or government fee becomes a calculator, and how we test the result before publishing. The goal is that a reader can redo the calculation and verify each step.
1. Define the question and the rule
We start with one specific question, such as: what gratuity is due after resigning after three years? We then identify the official text or source that governs the case and separate the general rule from its exceptions.
2. Write the formula
We turn the text into an explicit formula and state the units and assumptions: is pay monthly or annual, is service measured in years or days, are fees VAT-inclusive? Every assumption is written on the page, not hidden in the code.
3. Build test cases
Each calculator has at least three cases: a simple case, a boundary case (zero, one year, a fee cap) and a combined case (allowances, unpaid leave, multiple parties). We calculate the answer by hand and compare it with the tool. The tool is not published if the two disagree.
4. Verify the source
We check the source link and the version date we rely on. Where both Arabic and English versions exist, we compare them because figures can differ in translation. The review date is stored in the page metadata.
5. Test the interface and accessibility
We confirm the calculator works by keyboard, accepts decimals, shows results in the correct language and currency, and works on a small screen. We also test the print view, because many users print a result for an employer or a bank.
6. What the calculator cannot do
A calculator executes a formula; it does not read your contract or know your exceptions. Every page therefore states where human review is needed: disputes, non-standard contracts, exemptions and fees that vary by emirate or activity.
7. Updating
When an official source changes, we update the formula and data, rerun the test cases and change the review date. For a material change we add a short note explaining what changed and why, so a new figure does not look inconsistent with an older version.