Calculating the amount payable after a percentage discount