Added code for dealing with one cp trip and -1 dept time