Earnings/profit calculation