The formula is based on the number of triangles that can be formed from one of the vertices of the polygon.