Pregnancy Tests

I made a really stupid decision when I was drunk with my ex boyfriend, we had unprotected sex when I was fertile (33% chance of pregnancy). I'm freaking out because I'm still going to school. Can anyone please tell me how early you can take a pregnancy test before your missed period??