Pregnancy

How long after having unprotected sex should I take a test ? And what are the earliest signs of pregnancy ?