Nothing to stop you leaving the country with an expired card but in order to fly back you will need to apply for a PRTD or come back via the US land border with your expired card. You should apply for a PRTD as soon as possible when you arrive in your destination as there is no formal published processing time, just depends when you plan to come back.