Custom Template issue

Untitled1
Hi,
I want this template attached in this image to have in custom javascript message node.
So can someone guide me how i can build this template

Hello @kartik.chakkarwar ,

From SDK templates, we can use mini table template for the usecase. Both Past due and Current due amount can be obtained through service nodes and the calculation of total balance done either through service node or within the javascript.

Let us know if this helps!