What is the formula for calculating a pitcher’s earned run average?

To calculate E.R.A., divide the number of earned runs by the number of innings, and multiply by nine.