Examples
Examples
Try the starting example
- Initially affected lot identifiers; enter JSON
- ["A"]
- Lot links [input lot,derived lot]; enter JSON
- [["A","B"],["B","C"]]
- Dispatches [lot,customer,units]; enter JSON
- [["A","X",10],["C","Y",20],["D","X",5]]
- Returns [lot,customer,units]; enter JSON
- [["A","X",3]]
- Affected-stock ledger (JSON)
- {"affected_lots":["A","B","C"],"customers":[["X",10,3,7],["Y",20,0,20]]}
- Affected outstanding units
- 27
Try another scenario
- Initially affected lot identifiers; enter JSON
- ["B"]
- Lot links [input lot,derived lot]; enter JSON
- [["A","B"],["B","C"]]
- Dispatches [lot,customer,units]; enter JSON
- [["A","X",10],["B","X",8],["C","Y",15]]
- Returns [lot,customer,units]; enter JSON
- [["B","X",2],["C","Y",5]]
- Affected-stock ledger (JSON)
- {"affected_lots":["B","C"],"customers":[["X",8,2,6],["Y",15,5,10]]}
- Affected outstanding units
- 16
Calculation method
Calculation method
Affected-stock ledger (JSON)
Traverse all descendants of affected lots; aggregate dispatches and returns by customer for affected set only; outstanding=max(0,shipped−returned).
Affected outstanding units
Sum customer outstanding units.
Symbols and units
- a
- Initially affected lot identifiers; enter JSON
- b
- Lot links [input lot,derived lot]; enter JSON
- c
- Dispatches [lot,customer,units]; enter JSON
- d
- Returns [lot,customer,units]; enter JSON
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
- Directed lot lineage reachability and quantity ledger; affected lots must be user-confirmed and quantities share one unit. 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. Lot identifiers nonempty strings; quantities>=0; affected returns by customer cannot exceed affected dispatches. Cyclic links handled by visited set; linkage completeness is outside this tally.
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.