Calculation methodology
How CalcFlow defines units, precision, calendar arithmetic and formula review.
Approved formulas, not arbitrary code
Each calculator is an explicitly programmed pure TypeScript function. CalcFlow does not evaluate expressions, user code or remote formulas. Identical normalized inputs and a formula version produce the same raw result.
Units and precision
Data sizes convert through bytes and data rates through bits per second. Decimal prefixes use powers of 1,000; binary prefixes use powers of 1,024. Scalar input and unit conversion use deterministic decimal arithmetic.
- Default display rounding is half-up to six fractional places.
- Exact unit factors remain exact internally.
- Pixel dimensions use the selected integer rounding rule.
- Displayed approximation never changes the raw calculation.
Calendar rules
Dates are calendar labels, not local-midnight timestamps. Day differences use integer Gregorian calendar arithmetic. Month and year offsets clamp to the last valid day when the destination month is shorter.
Formula governance
Every definition carries a formula version, review date, assumptions, unit definitions and mathematical fixtures. A behavior change requires tests and a changelog entry. Current formula library: v1.0.0, reviewed 3 August 2026.