Soon?

When is the best time to take a pregnancy test or blood test if I had sex a week ago?