Possible kidney infection

I went to the doctor Friday because I thought I had a uti I was having pain in my right side and pain in my kidneys I was prescribed some medicine but after 2 days I was having some side effects making my arm hurt kinda numb as well so I stopped taking it and went back to the doctor Sunday got different medicine it’s been 5 days I’ve been taking it 4 times a day I’m just wondering can anyone that’s gone through this tell me how long does it take for the pain to go away or at least for my body to start feeling better Its not as bad as before but i have pain from time to time in my side I haven’t really been able to rest how I need to because Of work I work at a warehouse....