how long will the uti last?

Lovenae
So I had a UTI for 6 day's. They put me on pills where I take 1 pill 2 times a day for 3 days and I only had six. 
The first day I took 1.
The second I took 1.
Then realized I was supposed to take two.
So the last day 2 days I took 2.
Now that I don't have know more what should I do? Will it just clear up on its own? Or do I need more pills