let baseNumber = 4947; // Current cases in Skåne # Enter current cases let spreadPerOneDay = 0.284; // Growth per day (adjust using baseNumber as 26 till now to 4900~) let cycleCount = 0; // How many spread cycles passed let cityPopulation = 10120000; // Skåne population roughly # Enter the population of city you're living in function transmit() { baseNumber += baseNumber * (spreadPerOneDay); // console.log('day' + cycleCount, baseNumber); } do { transmit(); cycleCount += 1; } while (baseNumber < cityPopulation); console.log('Total ' + parseInt(cycleCount)+ ' days');