{"ref":{"kind":"component","id":"fulfillment_cost_index","key":"sha256:8e0925a3e6d4fd0d3d1928b940a8606a08c1f53f4291b37e46907df206ba44a2"},"label":"Fulfillment cost intensity indices","description":"Expose how packing, activity and unit cost jointly change shipping cost intensity.","inputs":[{"label":"Basket","name":"basket","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Cost","name":"cost","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Coverage","name":"coverage","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"GMV","name":"gmv","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Items","name":"items","valueType":{"axes":[],"dtype":"f64","unit":"1"}}],"outputs":[{"label":"Basket Available","name":"basket_available","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Breakeven Basket Ratio","name":"breakeven_basket_ratio","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Cost Ratio","name":"cost_ratio","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Cost To GMV Ratio","name":"cost_to_gmv_ratio","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"GMV Available","name":"gmv_available","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Intensity Available","name":"intensity_available","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Negative Inputs","name":"negative_inputs","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Shipment Ratio","name":"shipment_ratio","valueType":{"axes":[],"dtype":"f64","unit":"1"}}],"dependencies":[],"libraries":["fulfillment"],"notes":{"conventions":["Each input is current divided by prior, not a percentage change. One means unchanged.","Items and GMV must cover matching periods, geography and currency; coverage is the eligible-item share ratio.","Basket is items per shipment; cost is all-in cost per shipment. The caller owns comparability of published measures.","Indices preserve unknown absolute cost levels and do not infer shipping fee revenue or profit.","Basket and GMV denominators need positive values; unavailable ratios are zero with separate flags."]},"calculation":{"nodes":[{"id":"input-basket","label":"Basket","kind":"input"},{"id":"input-cost","label":"Cost","kind":"input"},{"id":"input-coverage","label":"Coverage","kind":"input"},{"id":"input-gmv","label":"GMV","kind":"input"},{"id":"input-items","label":"Items","kind":"input"},{"id":"step-value0","label":"(Basket > 0)","kind":"step","rule":"(Basket > 0)","sources":[{"node":"input-basket"}]},{"id":"step-value1","label":"(GMV > 0)","kind":"step","rule":"(GMV > 0)","sources":[{"node":"input-gmv"}]},{"id":"output-negative_inputs","kind":"output","label":"Negative Inputs","rule":"((((Higher of (Items × -1) and 0 + Higher of (Coverage × -1) and 0) + Higher of (Basket × -1) and 0) + Higher of (Cost × -1) and 0) + Higher of (GMV × -1) and 0)","sources":[{"node":"input-items"},{"node":"input-coverage"},{"node":"input-basket"},{"node":"input-cost"},{"node":"input-gmv"}]},{"id":"step-shipment_ratio","label":"Shipment Ratio","kind":"step","rule":"if (Basket > 0), then ((Items × Coverage) ÷ if (Basket > 0), then Basket, otherwise 1), otherwise 0","sources":[{"node":"step-value0"},{"node":"input-items"},{"node":"input-coverage"},{"node":"input-basket"}]},{"id":"output-basket_available","kind":"output","label":"Basket Available","rule":"if (Basket > 0), then 1, otherwise 0","sources":[{"node":"step-value0"}]},{"id":"step-value2","label":"Conditional result using (Basket > 0)","kind":"step","rule":"if (Basket > 0), then if (GMV > 0), then true, otherwise false, otherwise false","sources":[{"node":"step-value0"},{"node":"step-value1"}]},{"id":"output-breakeven_basket_ratio","kind":"output","label":"Breakeven Basket Ratio","rule":"if (GMV > 0), then (((Items × Coverage) × Cost) ÷ if (GMV > 0), then GMV, otherwise 1), otherwise 0","sources":[{"node":"step-value1"},{"node":"input-items"},{"node":"input-coverage"},{"node":"input-cost"},{"node":"input-gmv"}]},{"id":"output-gmv_available","kind":"output","label":"GMV Available","rule":"if (GMV > 0), then 1, otherwise 0","sources":[{"node":"step-value1"}]},{"id":"step-cost_ratio","label":"Cost Ratio","kind":"step","rule":"(Shipment Ratio × Cost)","sources":[{"node":"step-shipment_ratio"},{"node":"input-cost"}]},{"id":"output-shipment_ratio","kind":"output","label":"Shipment Ratio","rule":"Shipment Ratio","sources":[{"node":"step-shipment_ratio"}]},{"id":"output-intensity_available","kind":"output","label":"Intensity Available","rule":"if Conditional result using (Basket > 0), then 1, otherwise 0","sources":[{"node":"step-value2"}]},{"id":"output-cost_ratio","kind":"output","label":"Cost Ratio","rule":"Cost Ratio","sources":[{"node":"step-cost_ratio"}]},{"id":"output-cost_to_gmv_ratio","kind":"output","label":"Cost To GMV Ratio","rule":"if Conditional result using (Basket > 0), then (Cost Ratio ÷ if (GMV > 0), then GMV, otherwise 1), otherwise 0","sources":[{"node":"step-value2"},{"node":"step-cost_ratio"},{"node":"step-value1"},{"node":"input-gmv"}]}],"topics":[{"label":"Fulfillment cost intensity indices","results":["output-basket_available","output-breakeven_basket_ratio","output-cost_ratio","output-cost_to_gmv_ratio","output-gmv_available","output-intensity_available","output-negative_inputs","output-shipment_ratio"]}]},"usedBy":[]}
