We have a tutorial on how to set up a download center:
creating_download_center.php
Although this is not exactly what you are looking for, but i think it is a good starting point.
There is going to be some custom coding to be done as far as giving a customer a 30 day to download.