How long after the interview is the oath ceremony?
USCIS sets no fixed gap. Some offices hold the ceremony the same day as the interview, and otherwise you receive Form N-445 with the date.
There is no fixed gap in the rules. The Policy Manual says some USCIS offices "may conduct daily ceremonies where the examination, adjudication, and the oath take place on the same day" (USCIS Policy Manual, Volume 12, Part J, Chapter 5). Where that is not done, an approved applicant receives a notice with the ceremony date, and the case decision itself must come within 120 days of the interview.
The three paths
Same-day oath. Where the field office holds daily ceremonies, an approved applicant can take the oath that afternoon.
A later administrative ceremony. USCIS field offices hold ceremonies "at regular intervals as frequently as is necessary". The applicant receives Form N-445, Notice of Naturalization Oath Ceremony, with the date, time and place.
A judicial ceremony. A court administers the oath where it has exclusive authority, and the court sets the date.
The sources give no average waiting time for any of these.
What applies before the oath
Approval is not citizenship. The applicant becomes a citizen only by taking the oath (8 CFR 337.1). Until then everything about the case remains open:
Derogatory information. If USCIS receives it after a grant and before the oath, it removes the applicant from the ceremony list, notifies them in writing and gives 15 days to respond (8 CFR 335.5).
Eligibility conditions. Spousal applicants must remain married to a citizen until the oath, and good moral character and residence run to the oath.
Questions on the N-445. At check-in an officer reviews the applicant's responses on Form N-445 and verifies eligibility, then collects the green card.
Can it be faster?
An applicant may ask for an expedited oath ceremony "with sufficient cause", on compelling or humanitarian grounds such as a permanent disability that prevents attending a scheduled ceremony, or advanced age or developmental disability (Part J, Chapter 6). A wish to vote or travel sooner is not listed.
If you cannot attend
The N-445 explains how to notify the office and ask to be rescheduled. Do it before the date. A missed ceremony does not cancel an approval, but a delay extends the period in which things can change.
Worked case
An applicant is interviewed on a Tuesday and the officer says the application is approved. The office schedules ceremonies on Fridays, and the N-445 arrives two days later with the date. Before the ceremony the applicant avoids any trip abroad, keeps the green card, and checks the N-445 questions. At the ceremony she hands in the card and takes the oath.
What goes wrong
Traveling abroad between approval and oath, arrests or tax problems arising in that time, a divorce for a spousal applicant, or an address that was not updated so the N-445 never arrives. An approved applicant who has any such change should talk to an immigration attorney before the ceremony.