Total A Custom Child Table

Hello, i would like to know how to total the column in a custom child table ,i will like to be able to know the total of each column. It is for a very simple table, please help.

@PICK_MIX take a look here Usage of For loops - #6 by max_morais_dmm