Why is my static progress bar always showing 100%?

Hi,

I have been using this code in product description for a while now for static progress bar to indicate the % of stock sold/left. However after a while it stopped working and is always at 100%. Any ideas how this could be solved?

Hurry up! XX% of
XXX