The distance of the ball above the ground as a function of time after its is thrown is:

we have at , and at .

These tell us that

,

and so the roots of (as these are the times at which the ball passes the window):

differ by 2. Which with a bit of jiggery-pokery (manipulation of the quadratic formula mainly) tells us that:

which we can solve for , to find that

RonL