Pregnancy test

I have very irregular periods and have been having unprotected sex for a little over two weeks now. I just got a prescription for birth control but have to wait till my next period to start it. Sometimes I go two or three months without having a period and sometimes it's exactly a month apart. How long should I wait before I can take an at-home test?