When should I take a pregnancy test

Me and my boyfriend just had unprotected sex and he came inside me today. I recently missed a period which I believe to be due to UTI, but I am not entirely sure. According to the app, I should be ovulating today and have a 9% chance of pregnancy. When should I take a pregnancy test for accurate results of whether I am pregnant or not.