Hello guys, me again... 
Well, I'm having troubles with values to make my inventory:
For example, I bought this items these days:

Another day, I send them, like these:

At PowerApp, I have two forms that I submit the purchases and sales, but in the second, I do not find a way to get the value as a exemplify below, just because a have to find, on the sell from the day 12, the last value in stock, the R$ 30,00; after this, I bought again, at this time, much more cheaper, R$ 5,00 each, wich let my value in stock better, just R$ 28,15, and now, when I made a new sell at 25/01, It cost me only this R$ 28,15.

Please, if anyone has an ideia about some function to use at Power App it will be very very appreciated.
Thank you so much.
Robson.