The formula is the sum of the measures of interior angles. So that's what S stands for. The only other variable remaining is n which is the number of sides of the polygon.
There's nothing I can do to help you understand this, you just have to memorize it.