Planning interventions in a controlled pandemic: the COVID-19 case