Examples
Examples
Try the starting example
- Invoice lines [quantity,unit rate currency]; enter JSON (USD)
- [[3,0.335],[2,1.225]]
- Supplied tax fraction
- 0.2
- Rounding policy (line or invoice)
- line
- Net total (USD)
- $3.46
- Tax total (USD)
- $0.69
- Invoice total (USD)
- $4.15
Try another scenario
- Invoice lines [quantity,unit rate currency]; enter JSON (USD)
- [[5,0.333],[3,2.225]]
- Supplied tax fraction
- 0.1
- Rounding policy (line or invoice)
- invoice
- Net total (USD)
- $8.34
- Tax total (USD)
- $0.83
- Invoice total (USD)
- $9.17
Calculation method
Calculation method
Net total (USD)
Line policy rounds each quantity×rate before sum; invoice policy rounds raw net sum once.
Tax total (USD)
Line policy rounds each rounded-line-net×tax; invoice policy rounds net-total×tax once.
Invoice total (USD)
Net+tax.
Symbols and units
- a
- Invoice lines [quantity,unit rate currency]; enter JSON (USD)
- b
- Supplied tax fraction
- c
- Rounding policy (line or invoice)
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- Tax rate and rounding method supplied; half-up to two decimal currency places. No tax eligibility interpretation. Supported limits: All numeric inputs and computed intermediates must remain finite. Supported numeric input magnitude is zero or 1e-12 through 1e12 in absolute value; reject values outside this bounded range. All lists/JSON record tables are limited to 100 records unless a stricter bound is stated; reject malformed record arity and wrong member types. Policy exactly line or invoice; nonnegative quantities/rates; supplied tax fraction in [0,1]; decimal inputs at most 6 places.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.