Hi Lucca,
You can do this in javascript:
"setTimeout(function(){ location='<url of the homepage>'; }, 5000);"
Replace the <url of the homepage> with the url that you want.
For traditional web app use a RunJavascript action in preparation.
For reactive Web use a JavaScript widget in OnInitialize event handler.
Regards,
Daniel