If you have quadratic function (parabola) f(x)=ax^2+bx+c where a<0 (as in your case) its maximum value will be -(b^2-4ac)/(4a) (that is the height of vertex of parabola), and that maximum...