Walk me through what flows into Retained Earnings.

Retained Earnings = Old Retained Earnings Balance + Net Income – Dividends Issued

If you’re calculating Retained Earnings for the current year, take last year’s Retained Earnings number, add this year’s Net Income, and subtract however much the company paid out in dividends.