Approximately 3 weeks before your interview gets schedule for another approximately 3 weeks.
So you can still make it if after receiving your oath date, you go ahead and schedule your emergency passport.
You can get your passport the same or next day depending on your air ticket date.