Legal (certification) requirement is to commence an emergency descend within one minute.
Any more time would require an approval, for that an analysis of the available oxygen would be required.
Another constraint are the passenger oxygen masks. Most are effective only below 25000 ft so the time to get there is limited.