Calculation Methodology
Formulas and units
We use explicit mathematical formulas and document the units and assumptions for each calculator. Conversion factors and domain-specific assumptions are identified where relevant.
Precision
Calculations generally use browser floating-point arithmetic; displayed values may be rounded. The tip calculator allocates integer cents when splitting bills.
Validation
Automated tests cover representative calculations and selected invalid inputs. Tests do not establish correctness for every possible input.
Limitations
Mortgage estimates assume fixed rates and modeled PMI; compound interest assumes constant annual returns. Review individual calculator notes.
From inputs to results
We identify the quantity being calculated, choose a formula, define input units and validate the permitted domain. We substitute the inputs into the formula, perform arithmetic and format the result for display. A worked example helps visitors reproduce the method independently.
Handling edge cases
Percentage change is undefined when the original value is zero. Mortgage calculations use a separate zero-interest formula. Negative distances and invalid BMI measurements are rejected. Currency splitting uses whole cents so the shares add to the total.
Verification and changes
Representative automated tests compare known inputs with expected results. When changing a formula, we aim to review boundary cases, update examples and preserve unrelated calculator behavior. Visitors should independently verify important results and report discrepancies.