Explore the various factors that can influence a company's retained earnings over time.