Personally I’d say four days before ovulation IF you know for sure when you ovulated. The egg only lives on average around 24 hours after ovulation and it takes sperm time to reach the egg. But depends if you know for sure when you’ve ovulated or if you are just using LH tests for example.