When to have sex?

Soon will start new cycle and this will be 4th month trying and have tried sex every other day or a few days everyday before ovulation, on ovulation and day after but I want to ensure most and optimal sperm is around so how often and when to have sex?