Testing

When can I take a pregnancy test ? How soon after sex ?