Dynamic programming

Because if we env.now is a rounded integer, then env.now - timestamp will give us an inaccurate estimate. At least, for some large window size, it will not alternate.