volume and cost calculations