Solution:

(I’m assuming the 20 minute and 45 minute time add on’s are the travel time between their landing site and atlas café)

In the case of Courtenay Airpark

  • Find out what time they’ll conceivably land in the airpark and store that info in APLT
  • Find out what the available reservation times are for the Atlas Café
  • Book a taxi for APLT
  • Calculate APLT+20 minutes in order to get min_reservation_time_AP
  • Compare min_reservation_time_AP with each ava_ reservation_time
  • If ava_ reservation_time is earlier than min_reservation_time_AP, move to the next ava_ reservation_time
  • if ava_ reservation_time is equal to or later than min_reservation_time_AP, book this time

In the case of Smits Field:

  • Find out what time they’ll conceivably land in Smits Field and store that info in SFLT
  • Find out what the available reservation times are for the Atlas Café
  • Book a airfield loaner car for SFLT
  • Calculate SFLT+45 minutes in order to get min_reservation_time_SF
  • Compare min_reservation_time_SF with each ava_ reservation_time
  • If ava_ reservation_time is earlier than min_reservation_time_SF, move to the next ava_ reservation_time
  • if ava_ reservation_time is equal to or later than min_reservation_time_SF, book this time