when is it safe to have sex

I had my baby 2weeks and three days ago. I had a second degree tear when is it okay to have sex?