formula for cost calculation of copper ore