When should I go to the doctor for a UTI?

So, I’m pretty sure I’ve had a UTI for a week (maybe a week and a half.) I had sex and was super tired. I fell asleep instead of going to pee. I had the same thing happen last year, except I just fell asleep with a full bladder. It started as feeling like I had to pee a lot but only being able to pee a little. Then, it turned into burning when I pee. Now, it smells like ammonia every morning and it burns. It even hurts after I pee now. The reason I didn’t go sooner is because it was very on and off. I would have symptoms one day and then have nothing for 2 days. Now, it’s been more consistent.