The formula below is the time of flight ( time of whole journey from launch(0,0) to landing (×,y) ) of a projectile whose initial vertical position is above the point of impact.
I am trying to understand how the right side of the equation is derived. For instance, how do I come up with 2gy$_0$ ?
$\frac{d}{v.cos(\theta)}$ = $\frac{v.sin(\theta)+\sqrt{\left(v.sin(\theta)\right)^2 +2gy_0}}{g}$
Where
g = gravitational acceleration
y$_0$ = initial vertical position (h)
d = entire horizontal distance or range of the flight from launch to landing
v = velocity
$\theta$ = initial launch angle
Thanks

HINT
Let consider at first the equation of motion in vertical direction that is
then by the condition $y(t)=0$ find the time of landing $t_{L}$.
Finally use that to find x of landing by