Consider a polygon with 8 sides, known as an octagon. If all the sides of this polygon are of equal length, the octagon is classified as a regular octagon. The sum of the interior angles of any polygon can be calculated using the formula:
$$ S = (n - 2) imes 180 $$
where $n$ is the number of sides in the polygon. Using this formula, what is the measure of each interior angle of a regular octagon?