Calculate cost structure for the current route