When should I take a test?

How do i know when I should take a pregnancy test? How long do I wait? I don't have regular periods so it is hard to tell if I have missed one or not. Any suggestions?