@JeffSchwenk - THANKS! That did it! But I have another question. Using your formula, in VI how do you go about setting {PR.DATAENT:RATE} equal to the proper {PR.EMPL:PAY_RATE1} or {PR.EMPL:PAY_RATE2} based on the {PR.EARN:USE_RATE_1_2} as specified in the Earning Code file?