I’m having trouble getting my counter to multiply “current savings”- (variable) with number of months (variable).

```
monthly_salary = annual_salary/12
portion_saved = monthly_salary*float(input("Enter the percentage of salary to save, as a decimal:"))
r = float(0.04)
total_cost = float(input("Enter the cost of your dream home:"))
portion_down_payment = float(total_cost*.25)
number_of_months = 1
current_savings = portion_saved * number_of_months + (portion_saved * (r/12))
while current_savings < portion_down_payment:
number_of_months += 1
print ("number of months:",int(number_of_months))
```

In my variable explorer, my counter is working fine. Number of months counts up but current savings stays the same. Why would I need to redefine “current savings” within the loop?

```
monthly_salary = annual_salary/12
portion_saved = monthly_salary*float(input("Enter the percentage of salary to save, as a decimal:"))
r = float(0.04)
total_cost = float(input("Enter the cost of your dream home:"))
portion_down_payment = float(total_cost*.25)
number_of_months = 1
current_savings = portion_saved * number_of_months + (portion_saved * (r/12))
print (current_savings) #1003.33333334
while current_savings < portion_down_payment:
number_of_months += 1
current_savings = (current_savings * (r/12)) + current_savings
print ("number of months:",int(number_of_months))
```

When I redefine within the loop it at least works in conjunction with each other. Although my math is clearly off unfortunately.

The print (current savings) in line 8 is for reference only and will be deleted at the end.

r = 0.04 is an annual interest rate.

I am using the following as inputs for reference.

120,000 salary

.10 percentage of salary

1,000,000 cost of dream home