You can calculate a date 31 days into the future using the following code:
<?php echo(date("m/d/Y", mktime(0, 0, 0, date("m"), date("d")+ 31, date("Y")))); ?>
the store order details server behavior is on the confirm page.
edit the store order details behavior and set the value for the expiration date to use the code above.