figuring things out

how long after your period are you fertile/ ovulating? when is it okay if a guy cums in you without you getting pregnant?