I think I have a UTI and it's freaking me out....

So I'm studying in school with the goal of becoming a doctor right? Well last night I started having the need to pee every 20 minutes or less and I'm like "This is really weird..." so I check a medical app I have and it said straight up I'm describing the first and biggest symptom of a UTI. Then, the icing on the cake comes; it started to really hurt when peeing. I mean REALLY hurts. I have an exam today that I'm gonna have to skip and I'm freaking out because this isn't something I can treat on my own. I don't know how the heck it happened, I take care of my body, but now I feel like I need the advice of other women. I know I need antibiotics, but is there any home remedy or store remedy to at least help with the pain and frequent peeing?