I want to know does anyone would know when I should be able to take a pregnancy test??

I just want to know what is the rigth time to take a pregnancy test because I really donot know if my Cycle28 days this month or will be 32 days look at my calendar and when can my period should be done so I chould take a pregnancy test ????