Find the max volume of a box with a square base if you have 1200 sq. ft. of material for sides and a bottom (assuming open top).

I'm screwing up somewhere but I can't figure out where. V= x^2*y and then your y= (1200-x^2)/4x

Using a graphical method I found the answer x to be 20. But how do you get here using calculus?