About out of stock

Hello everyone, I run a doner shop. I want to calculate the daily wasted meat by subtracting the remaining amount from the meat inserted into the machine every day and the meat sold daily. For example, the staff says that they put 10 kg into the machine in the morning, and 2 kg are stretched and put in the cupboard at night. In Sambapos, it is displayed that I sold 6 kg, so there is 2 kg wastage. I need to have this calculated automatically every day, how can I do it?