If Maximum == Minimum but 'crates' < Maximum, the formula would simply return min + 1 regardless of max being identical to min. Only adding 1 more crate if Maximum is higher than Minimum fixes that.