Hysterectomy and no cervix how long will sperm stay in me

Patient: I had a Hysterectomy and now have no cervix my question is when I have sex with my boyfriend how long will his semen stay in me seeing now I have no cervix I don’t want to get an infection I really want to know