Transit Capacity and Quality of Service Manual (TCQSM) (http://www.trb.org/Main/Blurbs/169437.aspx) provides guidance on transit capacity and quality of service issues and the factors influencing both. You could also find the original excel version of TCQSM in thie repository, by looking for the folder named: "tcqsm_excel_example"
The manual includes quantitative techniques for calculating the capacity and other operational characteristics of bus, rail, demand-responsive, and ferry transit services, as well as transit stops, stations, and terminals. Regarding dwell time, TCQSM presents three methods to estimate the dwell time: field measurement, default values, and calculation.
In order to understand how factors such as vehicle type and fare policy influence passenger flow time, and to use the TCQSM model with our observed dataset, a ipython notebook (TCQSM_2.0) was scripted to show the TCQSM calculation flow. You could play the model by changing different inputs within the codes. Hope this repository will help you get to know the model structure easier.