
In an isosceles $\triangle ABC$, side $AB$ and $AC$ are equal in length. There exists a point $D$ on the side $AB$. $\angle BAC$ is $\theta$. The side $AD$ is $2$ units smaller than $AC$. What is the generalized formula to calculate the side $CD$?

In an isosceles $\triangle ABC$, side $AB$ and $AC$ are equal in length. There exists a point $D$ on the side $AB$. $\angle BAC$ is $\theta$. The side $AD$ is $2$ units smaller than $AC$. What is the generalized formula to calculate the side $CD$?
You can draw a picture to convince yourself that the length of $BD$ does not depend on $\theta$. You will need to be given more information.