How to read values dynamically from template

I want to read final debt and cred amount.any idea how to do that ?

Not too difficult, look for a row where both J & K are > 0

for each row in datatable
{
if (j > 0 && k > 0) // use row.item(x).toString
{
//found the total
}
}

Hello Thanks,Can you clarify how to only the final value which is in bold…i need thsoe bold value only