The number of diagonals in a regular polygon is equal to the number of sides. What is the number of degrees in the sum of all the interior angles of the polygon?​