Below is the graph of a trigonometric function. It has a maximum point at $\left(-5,2.5\right)$ and a minimum point at $\left(-1.7,-4.5\right)$.

**What is the period of the function? Give an exact value.**
[[☃ expression 2]] units