I have the following loop which shows the fields money and percent. I want to add all the money together as it iterates through, how can I do this and echo out a total outside the loop?
while(the_repeater_field('income')) {
the_sub_field('money');
the_sub_field('percent');
}