Essentially, it is x(t) = x0 × (1 + r) t Where x0 is the current population, r is the rate of growth, and t is the number of years/days (in your case). If you plug those numbers into the calculator on the link, you'll see it go from 2 to 2.6 and so forth. Your job is simply to implement that function and call it in a loop for the number of days requested.
2
u/[deleted] Mar 12 '21
[removed] — view removed comment