Made a mistake tmi

So I did something not that smart the other day and had unprotected sex. He finished inside me and I got off the pill about a month ago. I was just curious if someone could tell me when a good time to take a HPT? Thanks