Visualize the trajectory the firework takes: it's an upside-down parabola.
The max height is when it stops going up or when the rate of change of height = 0.
Rate of change ---> derivative
So take the derivative of the equation with respect to t, set it = 0 and solve for t.