add the percentagem to the totalPrice in if condition