Optimal Control of the Business Activity during a Pandemic