Solve for t:

y=vt+(1/2)gt^2

put it in quadratic form...

gt^2+2vt-y=0

t= (-2v+-sqrt(4v^2+4gy))/2g