Cervical mucus vs semen

Does anyone know approximately how long semen stays in the vagina? Trying to judge my cervical mucus as I know I should be ovulating soon. Just don’t want to confuse semen for mucus. I imagine it only lasts a day? Any info would be great!