Consider a regular octagon, which is an eight-sided polygon where all sides and angles are equal. The formula for the sum of the interior angles of a polygon is given by:
$$ S = (n - 2) \times 180 $$
where $n$ is the number of sides. How many degrees are there in each interior angle of a regular octagon?