← Dates

D-13very hardDates

Flight search: calendar with prices, passengers, results

Two airports named Portland, a two-month calendar with a price under each day, infants capped by adults, and a results list where the cheapest flight has a stop. The task wants the cheapest nonstop flight and the total for everyone.

Book the cheapest nonstop round trip from Boston (BOS) to Portland, Maine (PWM), leaving 8 January 2027 and returning 15 January 2027, for 2 adults, 1 child and 1 infant in Premium economy.

Endorphin steps

  1. Navigate to ${BASE_URL}/sandbox/d-13/
  2. Make sure "Round trip" is selected
  3. Fill "From" with "Boston" and choose "Boston, Massachusetts (BOS)"
  4. Fill "To" with "Portland" and choose "Portland, Maine (PWM)"
  5. Choose departure "8 January 2027" and return "15 January 2027"
  6. Set passengers to 2 adults, 1 child and 1 infant
  7. Select "Premium economy" in "Cabin class"
  8. Click "Search"
  9. Keep only nonstop flights, sort by "Cheapest" and click "Select" on the first flight
  10. Verify "Booked NB 3318 BOS to PWM, 8 January 2027 – 15 January 2027, 2 adults, 1 child, 1 infant, Premium economy, total $1,254" is visible

Pass when

The result line says "Booked NB 3318 BOS to PWM, 8 January 2027 – 15 January 2027, 2 adults, 1 child, 1 infant, Premium economy, total $1,254".

Open the challenge page