Shipping costs for Calculus of Variations and Partial Differential Equations of the First Order