Ovulation test

Um is there a way I can take an ovulation test to know when I can have the safest sex? (I’m not trying to get pregnant)