D
Dave Elliott
I realized that my code is not returning the result I want. If the
customer's bill is between 0 and 29 they pay the normal rate. If they are 30
to 59 days late, then they need to pay that %, which is 3%. The code below
does not do that. I think I need (2) pieces of code to accomplish this ?
zero to 29 days Original Invoice Amount. 30 to 59 Days, 3%, 60 to 89 days 4%
and 90 days and over 4%. Right now the code will give me , say if the
Customer is late 65 days, which puts them into the 3% bracket , it adds the
4% amount instead. Why? The customers bill is $1260.00 and the 60 days
per-centage is $37.80 at 3%, but the formula gives it 4%, which is $50.00
making the total come to $1310.40. . .
Thanks, Dave
=IIf([DaysPastDue]<=-91,CCur([Order Amount]*0.04),[Order
Amount]+IIf([DaysPastDue]<=-61,CCur([Order
Amount]*0.04),IIf([DaysPastDue]<=-31,CCur([Order
Amount]*0.03),IIf([DaysPastDue]<=0,CCur([Order Amount]*0.02),0))))
customer's bill is between 0 and 29 they pay the normal rate. If they are 30
to 59 days late, then they need to pay that %, which is 3%. The code below
does not do that. I think I need (2) pieces of code to accomplish this ?
zero to 29 days Original Invoice Amount. 30 to 59 Days, 3%, 60 to 89 days 4%
and 90 days and over 4%. Right now the code will give me , say if the
Customer is late 65 days, which puts them into the 3% bracket , it adds the
4% amount instead. Why? The customers bill is $1260.00 and the 60 days
per-centage is $37.80 at 3%, but the formula gives it 4%, which is $50.00
making the total come to $1310.40. . .
Thanks, Dave
=IIf([DaysPastDue]<=-91,CCur([Order Amount]*0.04),[Order
Amount]+IIf([DaysPastDue]<=-61,CCur([Order
Amount]*0.04),IIf([DaysPastDue]<=-31,CCur([Order
Amount]*0.03),IIf([DaysPastDue]<=0,CCur([Order Amount]*0.02),0))))