Define 3 data Structure for keeping different type of queues.
Change time variables to TS and make all the equations correct