fix(1346): persist the budget window, and measure it instead of guessing (#1347)