How to setup multiple k-means variable for distance & time

Hi All, hope you have a good day!

Currently, I’m trying to make a cluster with distances & time constraint, for example I have multiple set of cluster from k-means node from distances variables only as per image below.

Up until here it’s all good except that I realize I need to input time constraint to make the cluster make sense for my analysis.
I want to make sure that every cluster have a constraint of, say total 8 hours max with each point takes around 5-10 minutes.

Is there any way I can realize this? Appreciate your help in advance. :slight_smile: let me know if you need clarification.