$${y_a = v \sqrt{\frac{2(h-h_t)}{g}}}$$