The angle at which a well trajectory diverges from vertical direction :
\cos \theta (l) = \frac{dz}{dl}
where
Fig. 1. Deviation angle along the trajectory
Trajectory