Mathematical modeling of costs in transportation