Pants can go for an incredibly long time
As long as you don't work up a sweat while in them and have regular showers, they won't start to smell or get dirty or anything
Though generally I'll never wear a pair for more than a week on principle regardless
Same with hoodies and stuff
Now t-shirts, boxers, socks etc you need to change all the damn time