This problem showed up on my tab and I have tried few approaches, but they don't span out. So this is the figure,
In this figure we have find the distance BC, in terms of AD, AB and $\theta$ only.
Any pointers would be helpful.
P.S: In one of my methods I drew diagonals and used cosine rule, then cross-substituted the equations.

HINT: