Pregnancy test

How soon can you take a pregnancy test at the doctors office?