Well... I went to the washroom peed and then after peeing I masturbated had an orgasm then about an hour or to later I had unprotected sex with my girlfriend for literally under a minute and I stopped cuz I remembered I masturbated before that! also Her period ended 3 days before that sexual encounter so what are the chances of getting pregnant?
Hi, I think there is a chance of pregnancy.  So, she can take some emergency contraceptive within 72 hours.  If not possible, if her periods get delayed, do a urine pregnancy test at home.  If positive consult a doctor if you don't want pregnancy.  If negative wait for the periods.  Hope I have answered your question. Regards