How to Prepare a Statement of Retained Earnings: A Step-by-Step Guide with Example