uti ??? i think ...

so about 5 days ago at work i went to pee and it was burning, this has never happened to me in all of my 20 years so i was surprised, it was burning while i peed and it was kinda unbearable, i went to the store and got the AZO uti pills and it feels better when i take it but once its time for a new dose i’m dying. I just wanna know how long it usually takes for a uti to go away and if you guys think the pills are helping get rid of the uti, any tips to fasten the process?