Herd immunity thresholds in different scenarios