@EWPD1, we have some workarounds (on how to calculate a sum from within a repeat group) which should be helpful for you:
Another one:
And this one:
Here too:
Last but not the least: