Where i = interest per compounding period, and n = total number of compounding periods.
Since yours is annual, i just equals the yearly interest rate and n equals the years.
That is the equation, but I don't know how you need to solve it. This can be done with charts, financial calculators and Excel.
I don't remember the adjustment for an annuity due cause I never do them. I
think you add one to n, and then subtract one payment from the final answer. If I have time, I'll try to look that up if someone doesn't beat me to it.