Calculate cost and refactor trips to use new fuel function