Discounts formulas added. formula tested and working just fine.