sex on bacterial vaginitis meds

how long should i wait until having sex after finishing bacterial vaginitis medications? it’s a 5 day gel medication.