When a good time to have sex

My husband and I have been trying to get pregnant for the past year. I have a calendar to tell me when I am fertile and ovulating. How do I know when a good time to try to get pregnant? Do you have sex when you are doing both or what?