shipment insertion calculation