update to discount calculator