Estimating the reproduction number under interventions