When should I be taking pregnancy tests?

Can someone please explain when I should be taking a pregnancy test?