How long does UTI treatment last?

Depends. There are 3,7,10,14 day courses of treatment depending on your history and the antibiotic chosen.