Diagonals of Polygons

How many diagonals are in a polygon? Use this sketch to create your own diagonals for each polygon and try to formulate a rule to determine the number of diagonals in a polygon.
Based on your observations, what is a formula to determine the number of diagonals in a polygon