pregnant ?????

how long do i have to wait to take a pregnancy test??? i heard two weeks?