XY this time around!

If I want to try to have a baby boy, from what I know and heard it is said the closest to ovulation day is the best for male sperm. If I am doing ovulation tests- would that mean the day I get the positive result is when I have the highest chance of making that baby boy or would it be the day after ovulation? I know they say you have 12-24 hours after you get the positive of when you can ovulate so I am just trying to pin down the best day exactly to try.

Thanks all!