I have constructed a workflow to perform the cross calculations shown in the image below (opening balance + credit - debit = closing balance). What I want to happen, as shown in the image, is for the workflow to run the "opening balance + credits- debits" calculations for the current day using the "closing balance" of the previous day as the "opening balance" of the current day. I am attaching the screenshot for reference, sample dates chosen for reference is 14th Sept 2015- 17th Sept 2015.

Also, I am attaching the workflow also for reference.
Data sets screenshot (15th Sept 2015):

Data sets screenshot (16th Sept 2015):

Data sets screenshot (17th Sept 2015):
