How to Calculate Accounting Profit: A Comprehensive Guide