Indications for surgery are abscess or fistula formation; and intestinal rupture with peritonitis. These, however, rarely occur. Surgery for abscess or fistula is indicated either urgently or electively. The timing of the elective surgery is determined by evaluating factors such as the stage of the disease, the age of the person, their general medical condition, the severity and frequency of the attacks, and whether symptoms persist after the first acute episode. In most cases, elective surgery is deemed to be indicated when the risks of the surgery are less than the risks of the complications of the diverticulitis. Elective surgery is not indicated until at least six weeks after recovery from the acute event. Emergency surgery is indicated for intestinal rupture with peritonitis.