The egg that is released stays for only 24 hours. If no sperm arrives to fertilize it you'll get your menstruation. So you need to know your fertile window to know when is the best time to have sex. Usually before and after ovulation.
same question here