How to Calculate Rail Costs