I wrote a function in the oracle database that calculates saldo and finds the date of the operation. Here\'s how it works: