UTI question???

I have gotten at least 6 UTI's in the last year. I have gotten rid of all of them on my own. Those of you that also get them often, how long do you wait to have sex after the burning stops? 
*they started because I was on the pill, it changed my PH and I suffered from all sorts of infections until I got off of it*