Rules as data
Write a calculation as a YAML blueprint. Rules, rates and tables are data people can edit; the mechanics that apply them are code.
For rules that are more than a formula. Facts go in, named steps run in order, and every result keeps a trace of how each value was reached.