Contractors calculate overhead by identifying indirect expenses and profit by determining a desired profit margin percentage, adding both to the total cost estimate to cover business expenses and ensure profitability in construction projects.