Find the monthly deposit that builds a fund to a target by a set date.
Model and assumptions. The monthly deposit is the level payment that grows to the target by the end of the last month. Deposits are made at the end of each month and earn interest at the annual rate divided by 12, compounded monthly. The deposit is the target times the monthly rate divided by (1 + monthly rate)^months - 1, or the target divided by the number of months at a 0% rate. Interest earned is the target less the total of the deposits. The model assumes a constant rate and ignores taxes on the interest.