Calculate a sum from inside a repeat group

OK, you could do it as outlined in the post discussed previously: