Totals Row for Tab with Table Custom Data
Personally I'd do it by adding some javascript code to the page, and just use jQuery to add the totals row.

A super-quick way to do this would be to place the code inside {literal}&lt;script&gt; tags in a .tpl.extra file.