First checkin for some code to resolve time constraints for
scheduling trips. Does not yet work and not hooked up.