Working out percentages of an amount and price discounts