Love and sex

How long after a bust on you can u do a pregnancy test ? Help ?