$${d = \frac{1}{2}h \tan \theta}$$