How long can Sperm live

Ok so everytime I ask someone how many days can sperm live in the vagina, some say 3 some say 5 & some say up to 7. What is the actual most accurate answer? Then people say “under perfect conditions” but what do they mean by perfect conditions???