Pregnancy Test

How long do you have to wait until the pregnancy test can tell rather your pregnant or not ?