Updated code for cost of transport