for accounts I keep the same sticky IP for the full session, and preferably the same country and ASN on the next login. Changing it too often usually causes more problems
for scraping I rotate based on results. If the success rate drops, 429 errors start showing up, or there are more CAPTCHA, then it is time to rotate. I only use time-based rotation when the traffic is predictable