we will be starting ttc next month but i have a question

we had unprotected sex two days before I ovulated my period is due in 9 days when can I take a test?