$${t = - \frac{v_{x0}}{g_x}}$$