Unsure

Hi so around 2 weeks ago I had sex and my boyfriend came in me, according to this app my period is 3 days late yet when I went to use the bathroom this morning I saw some blood. Could this be my period or implantation bleeding? How long should I wait to take a test?