How long does sperm stay in the vagina?

The last time I had sex was October 20th. I've read that sperm stays inside for 7 days isn't it only 5 days or does it depend? Just wondering