Retained earnings at the end of the period is equal to:
retained earnings at the beginning of the period plus net income minus liabilities.
retained earnings at the beginning of the period plus net income minus dividends.
net income.
assets plus liabilities.