How to know

I don’t know really how this work & when can I come out pregnant is it from the day you started your period or ended can someone explain how this works please