Let $PSL(2,\mathbb{R})$ be the Projective Special Linear Group and $PSO(2)$ be the Projective Special Orthogonal Group.
It is well-known that $PSL(2,\mathbb{R})/PSO(2)$ can be identified with the upper half-plane $\mathbb{H}$.
Let $g,h$ be two elements of $PSL(2,\mathbb{R})$, How can the hyperbolic distance between $gPSO(2)$ and $hPSO(2)$ be computed?
The hyperbolic distance between $xPSO(2)$ and $yPSO(2)$ is equal to the hyperbolic distance between the identity coset $PSO(2)$ and $x^{-1}yPSO(2)$. So it suffices to describe the distances from the basepoint stabilized by $PSO(2)$ to another arbitrary point $gPSO(2)$.
I'll lean on some standard linear algebra here. Using the singular value decomposition, we can write $g=kak'$ for $k,k' \in PSO(2)$ and $a$ a diagonal matrix. The nonzero entries of $a$ are the singular values of $g$. These have to be multiplicative inverses and let's denote them by $\sigma \ge 1$ and $\sigma^{-1}$.
The distance from the basepoint to $gPSO(2)$ equals the distance to $aPSO(2)$. That's a pretty easy distance to compute. In particular, if your metric on the upper half plane $\mathbb{H}^2$ has constant curvature $-1$, then we get $$ d(PSO(2),gPSO(2))=2 \log \sigma .$$ Therefore the distance between $xPSO(2)$ and $yPSO(2)$ is easily computed from the singular values of $x^{-1}y$.
This formula can be viewed as a special case of a larger story; in particular the Cartan decomposition of symmetric spaces.