I want to get off ambien (zolpidem). How many nights does it take to get back to normal?

Not long, but. .. Make sure you do this gradually with your doctor.
Coming off Ambien (zolpidem) Usually up to 7 nights if you use the sleep hygiene techniques, such as regular sleep & wake hours, warm shower before bed, pushups for 5 mins. Before bed, never read in bed, no food within 1 hour before bed, warm skim milk before bed, no tight clothing in bed, etc.