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, said dwell occupancy definitions comprising occupancy limits that a block of railcars have occupied the railway terminal; creating, by the at least one computer processor, occupancy indexes for each of said train traffic records based on said dwell occupancy definitions, thereby dividing each occupancy definition into occupancy intervals; 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, a capacity demand of said rail terminal based on said dwell occupancy values.