Hiu leyakoreya ,
Please, read this article, the issue is tangential, but my colleague Salva's answer may help you.
Only stock from orders with statuses completed, processing, or on hold, and from before today will be considered here for calculations.
Best Regards,
José Andrés