Solution:

  • Find out the current time store in CT
  • Find out how long the wind delayed their takeoff time store in flightdelay
  • Calculate CT plus flightdelay store in ETA
  • Input available landing times store in avatimes
  • Compare ETA to each avatimes
  • If avatimes are later than or equal to ETA land in Courtenay airfield
  • If there are no later times land in Smits Field