Implementing discount based on coupon code in custom calculation form