Condition to Execute Deluge Script on Every Row of a Subform

Condition to Execute Deluge Script on Every Row of a Subform

Hi there,

I am currently creating an expense request form that my employees can submit for their expenses. In the form, I created a Subform so that my employees can add multiple entries for their expenses. The thing is, our company's policy is to only reimburse a certain percentage of the expense hence I need a script to calculate the amount to be disbursed. The script works just fine, but the execution of the script is based on the user input of the expense value field, and somehow when I tried adding another row (for another expense), even when I input that row's expense value field, the calculation script fails to execute.

Anything I missed? Should I run it no a different condition?

Thank you in advance!