> totalTax = 500.00 > f = .05 > p = .095 > > base = round(totalTax / (f*p + f + p), 2) > > > for i = base - .50 to base + 0.50 step .01 > fedTax = round(i * f, 2) > provTax = round((i + fedTax) * p, 2) > > if ( fedTax + provTax == totalTax ) > > ? 'Base ' , i > ? 'fedtax', fedTax > ? 'provTax ', provTax > exit > endif > > if( fedTax + provTax > totalTax ) > provTax = totalTax - fedtax > ? 'Base ' , i > ? 'fedtax', fedTax > ? 'provTax ', provTax > > exit > endif > > endfor >The problem I had initially, and still have it with the IF addition, is that if I enter something else than 74.88 for the value, the program falls into an ongoing process. I have to force a brute force close of the application.