How does a corporation compute earnings and profits (E&P)?

How does a corporation compute earnings and profits (E&P)? What income is deferred to a later year when computing taxable income but is included in E&P in the current year? What deductions are allowed for taxable income purposes but denied for E&P? DQ: 3.1