Brown discharge

My last period started August 11 and ended August 17. My next period isn’t supposed to start till September 10. I had brown discharge August 30, 31 and September 1. Why is this happening? Also I had a UTI in August 25 and just got off the antibiotics for it yesterday. Could the antibiotics have caused this?