Mathematical details are given in the appendix available as supplementary data; the program was written in C++, a 1-day step was used for all the simulations. In each simulation, changes in the number of infected individuals (cases) over time were determined.