Set the record duration

I would like to see a node that can automatically set the record duration.