Retained Earnings: Calculation, Formula & Examples