as long as there is a vertex formula we can use it to calculate the min and max values or quadratic equation instead of completing the square. Use as per your choice. Both are correct. Just letting you know the another simple formula so you can increase the speed and accuracy.
so the formula to find the x for min nd max value is -b/2a . after calculating the x put that value into the OG quad equation. and done.