Optimal policies for mitigating pandemic costs: a tutorial model. (1st September 2022)