Suppose I have two smooth projective varieties $X$ and $Y$ in $\mathbb{P}^n$, that intersect along a smooth subvariety $Z$. Is there a formula to compute the degree of the join variety $J(X,Y)$ of $X$ and $Y$? Of course if $Z$ is $\emptyset$ then we have the classical formula, but what if $Z$ is non-empty?