I need to use to plug in timers to reboot my modem and router occasionally

Occasionally I need to reboot my modem and router. I’d like to use a plug-in timer to shut the modem off and another plug-in timer to shut the router off then turn the modem plug-in back on for one minute and then the router plug in back on. Any suggestions on how to set this up? Thanks

I use a remote outlet like the one below… a little pricey but worth it in a bind.
http://amzn.com/B00LLVQ9OI