1. A computer-implemented method of determining capacity of a rail terminal, the method comprising: accessing a dataset comprising a plurality of train traffic records associated with a rail terminal, said dataset being stored in at least one database; indexing, by at least one computer processor, said plurality of train traffic records into periodic intervals; assigning, by the at least one computer processor, unique index values to each periodic interval; assigning, by the at least one computer processor, dwell occupancy definitions to each of said train traffic records; creating, by the at least one computer processor, occupancy indexes for each of said train traffic records based on said occupancy definitions; assigning, by the at least one computer processor, dwell occupancy values to each occupancy index based on said dwell occupancy definitions and said dataset; and determining, by the at least one computer processor, the capacity demand of said rail terminal based on said dwell occupancy values.