When should u take a pregnancy test?

Was just wondering when one shuld do a pregnancy test? Did not know i was late