Tavira is a small city, so you don't need much time to explore. Everything can be seen in 2-3 days. But if you want to relax by the seaside, you can easily spend a week here.