How do I create a 10% discount to be activated by a code that will be valid for a given time interval?