Pregnancy Test

What's the earliest that I can take a pregnancy test? I had sex 11 days ago and my period is due around now, but I have random periods so don't know for sure.