Total product saving percentage convert to price unit

Hello Everyone,

Can someone help me convert the percentage (total saving) to a currency? I managed to get “saving by percentage”. Here is the code below:

Nice one! You just saved {{ product.compare_at_price | minus: product.price | times: 100.0 | divided_by: product.compare_at_price | round }}% OFF

money.png

Somehow I managed to sort it out. Comment it if you need the code!