Quick answer
Savings Goal Calculator: what it calculates
Savings Goal Calculator calculates time to goal from savings goal, current savings, monthly contribution, annual return, and target months. The visible formula is Future balance = current savings x (1 + r)^n + monthly contribution x (((1 + r)^n - 1) / r).