Similarly to this answer: https://money.stackexchange.com/a/57578/11768
Calculation for a growing annuity-due with deposits increasing annually.
r is the monthly or quarterly interest rate
y is the number of years
m is the number of months or quarters per year
p is the initial regular deposit
x is the annual deposit percentage increase
fv = (p (1 + r) (-1 + (1 + r)^m) ((1 + r)^(m y) - (1 + x)^y))/
(r (-1 + (1 + r)^m - x))
Example with quarterly deposits increasing annually.
r = 0.1
y = 3
m = 4
p = 500
x = 0.05
fv = 12209.85
Quarter-by-quarter calculation
y1q1 = 0 + 500
y1q2 = y1q1 (1 + r) + 500
y1q3 = y1q2 (1 + r) + 500
y1q4 = y1q3 (1 + r) + 500
y1q4 (1 + r) = 2552.55
y2q1 = y1q4 (1 + r) + 500 (1 + x)
y2q2 = y2q1 (1 + r) + 500 (1 + x)
y2q3 = y2q2 (1 + r) + 500 (1 + x)
y2q4 = y2q3 (1 + r) + 500 (1 + x)
y2q4 (1 + r) = 6417.37
y3q1 = y2q4 (1 + r) + 500 (1 + x)^2
y3q2 = y3q1 (1 + r) + 500 (1 + x)^2
y3q3 = y3q2 (1 + r) + 500 (1 + x)^2
y3q4 = y3q3 (1 + r) + 500 (1 + x)^2
y3q4 (1 + r) = 12209.85
Derivation
The formula is derived from the following double summation.
Initial principal?
If you have an initial value v
this can be added on with its own interest.
total = fv + v (1 + r)^(m y)
Similar calculation, but for a loan (ordinary annuity)
See https://money.stackexchange.com/a/74238/11768