Hi,

I don't understand exactly what's the problem?
For example, what is the meaning of prev_balance and acc_balance?