Is it possible to use relative dates for poll closing?

Here’s my use case:

I have a Discourse Automation script configured to reply to every new topic in a certain category with a poll about that topic.

I want that poll to auto-close after two weeks.

But, the auto-responder script just adds fixed text, and the poll syntax (as far as I know) only takes a hard-coded date.

Any clever ideas?