Caculation among childtable in same doctype

Hi guys,
I want to put a caculatation in a child table which use data from another childtable in the doctype. Like that


And here my child table:


Who know how to solve this? Pls help me.
Thanks