Hi hsdbda,

for what I see:

acc_balance = prev_bal + debit - credit

is that right?

But, how do you calculate prev_bal?