as soon as your surgeon give you the "okay". open surgeries require longer healing times than a laparoscopic procedure so your surgeon has the final say-so. i suspect it will not be more than a few weeks.
how soon after open surgery for a inguinal hernia can i have sex again?