confused

Samantha
what are the best and worst times to have sex if you're trying to avoid pregnancy? I know people will say on a certian day of your cycle, or not during your ovulation period, but how do you know when that is? like how many days before/after your period ?