How do I calculate a total from a child table?

Hi,

Specifically, I added a box to my expense claim detail where the user inputs how much tax was charged. I would like for the sum of these taxes from the child table be visible in the expense claim form without having to be input manually. How can I do this? Thanks.

Check this for an example:

Also check these

https://manual.erpnext.com/contents/customize-erpnext/custom-scripts/custom-script-examples