Trying to make the problem as simple as possible.
I decide to start on January $1^{\text{st}}$ a saving plan for which the bank will give me a constant interest rate $r$ (the interests being paid on December $31^{\text{st}}$).
During a given year $y$, I shall make a constant monthly deposit $d_y$.
But, this deposit will change from year to year; for example $$d_{y+1}=d_y +\delta\qquad \text{or}\qquad d_{y+1}=d_y \,(1+\delta)\qquad \text{with}\qquad \delta>0$$
What could be the formula of the present value after $n$ years ?