Pms AND ovulation. ??

If you had pms on Oct 18 2014 pms last only 4 days cycle 24 some women cycle to 28 mind only going to 24. When had sex on day 26 how long does sperm is it true sperm lives for 7 days are 5 days ?????