Work out how many boxes you need