Added fee_total to the calculation of discount percentage