Refactored percent_discount to use NumberFormatter.percent_off method