I am trying to change sale badge for percentage off
But it is comparing the price with highest amount on variant and lowest price so i am getting 96% off which is wrong
{%- if show_badges -%}
{{ product.compare_at_price_max | minus: product.price | times: 100.0 | divided_by: product.compare_at_price_max | money_without_currency | times: 100 | remove: '.0'}}% OFF
