I think you'll find that if the box has a square base, then it's side lengths are , but the height of the box is not necessarily . We'll call it something else, (for height).
And since , this means
Now, the volume of the box is
To maximise the volume, find its derivative, set equal to 0, solve for the length, solve for the height.