I’m studying basic accounting and need help understanding how to calculate retained earnings. What’s the exact formula, and how do net income and dividends factor into the calculation? If possible, could someone provide a simple example with numbers? Trying to make sure I fully understand it before my exam.