What is the measure of an exterior angle of a regular octagon?

Make sure to show your calculation and formulas used for credit.