When is it impossible to get pregnant in your cycle?

I don't know much about sex and all that. But IF I ever have sex, I'd like to know when the best time is.....thanks