You need to solve the equation:

Rewrite in standard form:

Use the Quadratic Formula:

Simplify:

The smaller solution () is when the ball is going up. The larger solution, seconds, is the answer.