Hard to say!
Peritonitis is an infection within the abdominal cavity with manifestation of infection on the lining of the abdomen and the lining of the bowel
Depending on the cause, the extent of the infection, the treatment, the state of health, and many other issues it can take as little as a couple of days to several weeks or more. Very hard to answer specifically. Let's say 3-14 days?