calculate the cost of gold extraction the gold