A 50-year-old man presents with a 3-day history of colicky right upper quadrant pain radiating to the back, fever and positive Murphy’s sign. Ultrasound shows gallstones, a thickened gallbladder wall and pericholecystic fluid. According to NICE guidance, what is the recommended timing of cholecystectomy?