Test ?????

How soon after sex should I test if I'm pregnant somewhere I read to test at like 5 weeks but I would test at 6 if this is the case