How do you know when to take a hpt

Autumn Kay • ttc since 2014. had a miscarriage 7/2/16.
If you have very irregular cycles? Everyone always says wait till you miss youe af but if you have always been irregular then you never know if you missed it. How do you know when to test