Trying to get pregnant

I was on birth control because my period starting lasting more then the usual 3-4 days. I stopped taking them because I was getting really moody. Me and my boyfriend had sex on the 6th of this month. I felt really mild light cramping. I just want to know when would be the perfect time from to take a test to check if we are having a baby.