Hi ! It seems you had an urinary tract infection
following TURP. Usually 10-14 days of antibiotic therapy is recommended depending on the severity of the infection and culture sensitivity report. However, your treating doctor is the best judge to decide the duration. So I will suggest you to get yourself reviewed by your doctor before discontinuing the medicines. Wishing you an early recovery.