Hi,
This is the first macro I've written, and I think it is not that complicated of a macro. However, it took just over 20 hours to run! I'm not sure if it is my computer that doesn't have the computing resources, or if there is something wrong with my macro. The goal is to take the first record of the bottom input and match it to a record in the top data set. Then, perform a series of formulas and output the result back to the workflow. The second output from the top is to output any records that did not match. The bottom output loops back to the bottom input. It is the original data set, less the records that have ran through the process. Below is a screenshot of the macro.

For security purposes, I cannot share the data. However, the top input has 37 fields and 576,710 records. The bottom input has 14 fields and 58,621 records. It took just over 20 hours for the macro to run, and the output was as expected. I just want to know if anyone sees anything wrong with the macro that would cause it to take so long to run.
Thanks so much!