How to Calculate Retained Earnings: Key Insights