show me 1 real world example where it would make any sense at all to do 20 compounding math calculations (which modify the end result variable AND the divisor variable that was passed into the routine in the first place) and when divide by 0 occurs, you will reset the divisor to 1 and keep going.

It doesn't make any sense, it will produce unexpected results...