I'm trying to calculate value weighted returns for a long short momentum portfolio. The workflow gives me the correct output for single inputs, but outputs only zeros when I try to run it as a batch macro for repeated inputs. What should I do different to get the correct outputs instead of just zeros? Any help would be highly appreciated!

