How to customize the footer in tiddlytables

@Mark_S

Do you any suggestions as to why the calculations are not getting rendered when used in the table while its working in the tiddler body.
It based on a code given by you in this thread