Pay-upon-return: Generating rental contracts