Figuring out the height of a bouncing ball after a certain number of seconds