An object is thrown upward out of a building window. The equation h=-16t²+40t+24 models the height in feet, h, of the object above the ground t seconds after it is thrown. How long does it take for the object to hit the ground?