how long can your ph balance be thrown off by sex?

if I had sex with a man like 2 weeks ago, right before my period, he wore a condom but I swear right after everything down there smelled off and my period just now ended but something still smells off