They recommend 6-8 weeks, but it depends on
a) do you have an abdominal incision?
B) did you have any complications?
C) seriously do you feel like having sex?
D) do it because you feel ok and want to not because you think you should.
E) make sure you have a caring partner who will listen to you and stop if you need to.