Fix: infinite loop in function num_public_holiday