Add following code where you want to display like “17% off” in your product page:
{% if product.compare_at_price_max > product.price %}
{{ 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
{% endif %}
Also, I can help you to fix Qty and AddToCart button, just mail me with store details.
Thank you,
Tejas