$${\left(\frac{P}{2 \pi} \right)^2 = \frac{r^3}{GM}.}$$