The formula
Monthly saving = (target − S × g) × r ÷ (g − 1), where g = (1 + r)n
S is what you have already saved, r the monthly interest rate and n the number of months. Deposits are made at the end of each month and interest is added monthly.
Worked example
To reach 20,000 in 5 years, starting with 2,000 at 4% a year, you need to save 264.83 a month. You pay in 15,889.84 over the period and interest provides the rest.
Keep in mind
Interest rates on savings change, and tax may apply to interest depending on where you live. Inflation also means the target will buy less by the time you reach it. This is general information, not financial advice.