Some questions about sex when it comes to getting pregnant

1)How long after your period will you ovulate?

2)How long does ovulation last?

3)Should you have sex before, during or after ovulation to get pregnant?