fix early discount: if order is complete, use completed_at date, otherwise, use todays date