Pregnancy Scare..Help!

So I had unprotected sex 16 days ago and he pulled out. (It was a lack of judgement and I know this was a bad decision) However my period is now “late” according to this app although my period is never really regular. When do I test?