How long do you wait to take a pregnancy test?

How long do you have to wait to take a pregnancy test after he cums in you? I don’t get normal periods but still ovulate.