PT time? or no?

I had sex before i came on my period and came off early. how soon should i take a pregnancy test two weeks after my period came off or 2 weeks after Ive had sex???