You can use the formula

You know what you final velocity is (at the top), the initial velocity as well and a is the gravitational acceleration. Solve for to find the displacement and don't forget to add the initial height.

Then you can use and solve for t to find how long it took.