How to prepare a statement of retained earnings for your business