Duration of mechanical ventilation