Sperm life

How long can sperm live inside you? How early can you have sex prior to ovulation and still have a chance to get pregnant? I travel for work so curious on people's experiences....