Help!

When is the best time to take a pregnancy test if you are unsure when your period is due? I've always had irregular periods and they say the tests are for days after your missed period. How do I know when to test?