When the oxygen masks fall. The moment the oxygen masks fall, you’ll have about 15 minutes worth of oxygen. This is easily more than enough of time for the pilot to lower the airplane to a lower altitude where you can breathe easily.
Source: 27 Pilots And Flight Attendants Confess Dark Secrets You Need To Know About Flying