I have a mileage reimbursement form that I'm trying to do automatic calculations on. The problem is that I have 2 different reimbursement rates depending on whether the travel occurred up to 6/30/22, or on or after 7/1/22. The values go into a table that lists a date for each travel instance and the miles. My question is, does anyone know how I might auto-fill a field in the row with one of the two rates based on the date that is entered in that row? That would allow each row to calculate the monetary reimbursement with the correct rate, which could then be totaled in a field outside the table.
I'm assuming this would require using Javascript. If that's the case, could you please give me some sample code of how to accomplish it?
Thanks in advance!