added function to calculate a prior ballance to the ledger query

still needs to be added to the redraw and scaffolding removed