Fixed the  discount value bug

@chrisndodge I have added the functionality of [Ex-40]. Kindly review the changes.

Thanks