Go to the Triggers section.
Create a new trigger.
Select the trigger type — After order is created.
Set the desired time delay.
Add a task to the trigger.
Add an action to change the status to "Cancelled".
Set the condition to: status is "Pending".
Your configuration will look like this: