Quadratic Formula with time limit