WooCommerce progress bar from cart contents total value

My aiming result is like this: With the current code its not showing the cart total in the progress bar. What am I doing wrong? And how can I integrate those steps/stacks? var carttotal = WC()-&…