i provided the solution on above sample file...
is it wrong...?????
if current full box is 0 and min box is 2 ---order quantity is 2 x 18 right??

if current full box is 1 and min box is 2 ---order quantity is 1x 18 right??

if current full box is empty and min box is empty so no order quantity -0

ifthe above is not the case can you elaborate using a sample numbers....