Examples
Examples
Try the starting example
- JSON Runs [ID,finished run length m,quantity]
- [["A",20,4],["B",8,2]]
- Stock bar length (m)
- 12
- Specified lap per join (m)
- 0.6
- Bars per run and join count
- [["A",2,1],["B",1,0]]
- Additional lap length (m)
- 2.4
- Stock bars without sharing offcuts
- 10
Try another scenario
- JSON Runs [ID,finished run length m,quantity]
- [["A",20,4],["B",8,2]]
- Stock bar length (m)
- 12
- Specified lap per join (m)
- 0.8
- Bars per run and join count
- [["A",2,1],["B",1,0]]
- Additional lap length (m)
- 3.2
- Stock bars without sharing offcuts
- 10
Calculation method
Calculation method
Bars per run and join count
J([[r[0],max(1,ceil((r[1]-c)/(b-c))),max(0,ceil((r[1]-c)/(b-c))-1)] for r in a])
Additional lap length (m)
sum(max(0,ceil((r[1]-c)/(b-c))-1)*c*r[2] for r in a)
Stock bars without sharing offcuts
sum(max(1,ceil((r[1]-c)/(b-c)))*r[2] for r in a)
Symbols and units
- a
- JSON Runs [ID,finished run length m,quantity]
- b
- Stock bar length (m)
- c
- Specified lap per join (m)
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Calculation steps and notation
sum(list) adds all entries in the list.
Assumptions & limits
Assumptions & limits
- Straight collinear runs, supplied approved lap, stock length >lap≥0. Each run uses its own bars; no shared offcuts or structural lap determination. Supported limits: All numeric inputs must be finite. Only the explicitly described mathematical scenario is supported.
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.