Sperm

What's the correct amount of days sperm lasts inside you,
I had sex the first and second day straight after my period will it last until I ovulate ?