Determine the length of the DIAGONAL of the base
The diagonal of the base, along with the height will form the TWO legs of a right triangle. Determine the
length of the hypotenuse of this right triangle and you'll have the length of the object that can fit, diagonally.