Translate the following into a formula:

The sum S of the measures of the angles of a polygon is equal to 180 times the difference of the number of sides n and 2.