Help?

So me and my man had sex two days before my period.. I had my period which lasted for about 5 days..normal it last for a week. Then had sex after my period.. How long should I wait to take a pregnancy test??