What is retained earnings? How to calculate them