Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate Headway Deviation 1

Status
Not open for further replies.

capronton

MIS
Jun 28, 2013
159
0
0
US
I have the data set below and I would like to calculate headway deviation (actual headway - schedule headway)

tDate [/indent]incTime schTime bus HeadwayDeviation
3/23/16 6:39:30 6:37 5015 ?
3/23/16 6:47:30 6:49 5012 ?
3/23/16 7:02:30 7:01 5007 ?
3/23/16 7:34:30 7:26 5022 ?
3/23/16 7:38:30 7:38 5006
3/23/16 7:55:31 7:50 5017
3/23/16 8:10:32 8:05 5003
3/23/16 8:28:31 8:17 5013
3/23/16 9:27:32 9:22 5010
3/23/16 9:37:32 9:35 5019
3/23/16 9:43:32 8:30 5009

Formula for ActualHeadway
previous(incTime) - incTime

Formula for ScheduleHeadway
previous(schTime) - schTime

Formula for HeadwayDeviation
ActualHeadway - ScheduleHeadway

Can someone assist me in creating the 3 formulas above based on data set?

Thanks in advance for assistance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top