Formula For Calculating Retained Earnings