When should I take a pregnancy test if my periods are irregular?

I have always had extremely irregular periods, some months i don’t have them at all and other months i’ll bleed for 3 weeks. Sometimes I have symptoms of pregnancy but I never know when to take a test because they always say “after a missed period” but i never know when that is. Someone help