Retained earnings are the cumulative net income a company has kept rather than paid out, shown in shareholders' equity.
Closing retained earnings = opening + net income − dividends − other charges
The roll-forward is the link from the income statement to the balance sheet. Some companies charge part of each share repurchase to retained earnings, which can push the balance negative, an accumulated deficit, even when the business is very profitable.
Practise it: Retained earnings roll-forward.