Pregnancy test

How long should I wait to take a pregnancy test? My period was very irregular whenever I wasn’t sexually active and it started to become normal when I became sexually active. I’m currently 2 weeks late. When should I worry?