Optimal mode of transportation and costs