Calculation of data from child table

It’s similar to yours.