Go to Projects, select the target project and open it.
Go to the billing rules area and click Add. Select the discount type:
Fee discount
Discount on invoice
The "Fee discount" will apply the discount percent on the project fees, when the timesheets are created.
The "Discount on invoice" option will apply the discount percent at the invoice generation moment, as a separate discount line on the invoice.