An algorithm to calculate pulmonary ventilation during laparoscopic cholecystectomy