Creating a discount percentage for each product

I want to add % discount for each product individually. Is there some automatic element that does this? Or do I need to create a complex rule to calculate this percentage?

P.S. I have already tried to create a rule to calculate the discount percentage and got an error. If it is necessary to create a rule for this purpose, I will be glad if you share the correct formula for calculating the discount percentage.

1 Like

I would say that the formula would be:

(1-%g:sale_price%/%g:price%)*100
2 Likes