Retained earnings: understanding and accounting for them