Dynamic modification of time interval (Batch node)

Unfortunately, I don't really have a specific example at the moment, as we are still in the brainstorming phase of our project, but what I am trying to do is create some sort of a buffering layer using node-red.

If it helps, the concept is that I want to create a time-based buffer to batch together sensor/device measurements in order to batch-insert them into influxDB. Using the Batch node currently allows us to use a fixed time-interval for all the sensors, but this is quite inflexible for our case...

*Update to my question: I have found this [Inject node - repeat. Stuck if it can be set externally] question that may aid in changing the time interval of the Batch node, but I am new to node-red and I am not sure how adapt it to my case yet.