Examples
Examples
Try the starting example
- Unit IDs JSON (priority is lexicographic for rounding ties)
- ["A","B","C"]
- Quote lines JSON [work ID,integer minor currency units,{unitID:benefit weight}]
- [["roof",10001,{"A":1,"B":1,"C":1}],["door",4000,{"A":3,"B":1}]]
- Work-item charges by unit (minor currency units)
- [["roof",{"A":3334,"B":3334,"C":3333}],["door",{"A":3000,"B":1000,"C":0}]]
- Total charge by unit (minor currency units)
- {"A":6334,"B":4334,"C":3333}
- Total tender (minor currency units)
- 14001
Try another scenario
- Unit IDs JSON (priority is lexicographic for rounding ties)
- ["A","B","C"]
- Quote lines JSON [work ID,integer minor currency units,{unitID:benefit weight}]
- [["roof",12000,{"A":1,"B":1,"C":1}],["door",4000,{"A":1,"B":1}]]
- Work-item charges by unit (minor currency units)
- [["roof",{"A":4000,"B":4000,"C":4000}],["door",{"A":2000,"B":2000,"C":0}]]
- Total charge by unit (minor currency units)
- {"A":6000,"B":6000,"C":4000}
- Total tender (minor currency units)
- 16000
Calculation method
Calculation method
Work-item charges by unit (minor currency units)
Allocate each line by explicit positive benefit weights; floor raw minor-unit shares and allocate residual US cents to largest fractional remainder, then lexicographic unit ID.
Total charge by unit (minor currency units)
Sum reconciled item shares.
Total tender (minor currency units)
Sum line amounts; must equal all unit charges combined.
Symbols and units
- a
- Unit IDs JSON (priority is lexicographic for rounding ties)
- b
- Quote lines JSON [work ID,integer minor currency units,{unitID:benefit weight}]
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
- Explicit weighted benefit-group allocation only; no inferred lease, strata, tax or statutory policy. Integer currency minor units ensure conservation; selected currency determines display scale. Supported limits: Unique units/items, 1..100 each; integer amount>=0; known unit keys, positive finite included weights, at least one weight per line.
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.