How long does sperm usually stay inside a women's body?

I know it's 5 days but can it be 3 days also? Does it depend only if you ovulate