Is this function possible??

https://petegregory95.wixsite.com/website/testing

Users get a maximum of 100 products.
I want the “products remaining” number change according to the “number of products” they input.

You can see in example 2 on my link,
If they enter:

  • 10 for dresses
  • 40 for tees
  • 40 for dresses
    They have 10 left as seen in the “products remaining” part.

Is this possible?