Great point on the CEIL function. Thanks for sharing. If the number of boxes isn't a power of 2, splitting…