Help? Question

Laura

How long after having unprotected sex should you take a pregnancy test? I’m 10 days late but it could also be that I just got off birth control like a month ago but I just wanna know when is it safe and accurate to take a test after having unprotected sex. Please help.