Actually there's a way to do it without requiring you to take any pre-measurements in a megabase.
Let r_i be the amount of chests updated at tick n and
Let t_i be the total duration of tick n
Let t_des be the amount of time you want the mod to take for just updating the chests each tick.
Let i, j, k be ticks.
then
r_i = t_des * ((r_j - r_k) / (t_j - t_k))
By choosing appropriate ticks j and k, you could pre-calculate the amounts of chests you can update at tick i.
You would just need to make sure that r_j ~= r_k and t_j ~= t_k. Just choose the last two ticks which satisfy this. The further the distance between i, j and k, the more inaccurate it gets.
Keep in mind that:
1. You can at minimum start to calculate it with tick 3 and not earlier
2. Tick 1 and tick 2 need to have different amounts of chests updated in order for this to work. This is impossible if there aren't any chests present.
3. 0 is an absolutely valid updating rate for this formula. So as soon as the player puts down the first chest, you can start calculating.