automate the change of invoice status

automate the change of invoice status

Hello,
Is it possible to automate the change of invoice status?
When my recurring bills are created they are with the status "draft". I want to change the status for "paid" automatically 5 days after creating the invoices.
How to do ?
Thank you