$${l = -2\frac{v_{0x}^2}{2g_x} - h = -\frac{v_{0x}^2}{g_x} - h}$$