A ball is thrown into the air with an upward velocity of 13 ft/s. Its height h in feet after t seconds is given by the function h = −2t^2+ 13t + 24. In how many seconds does the ball reach its maximum height?