Try to run the pricing system in Denmark if it hasn't been changed over the years.... It was "deem" "impossible" for a human to calculate the pricing within a reasonable amount of time (with all the associated bonus).
Do not forget that there might several companies running on the same track, cargoa and passenger trains etc.
Managing a busy track is hell.