and I understand what this calculation node ist doing...
as a suggestion:
replace it with this:
node-red-contrib-throttle
and set it up to "by time" and the time to 150 milliseconds.
that is more what you are lookin for i think.
this will let one msg pass every 150ms...or whenever you like
and as this is a programming forum i have a sweet or you:
you dont need this node either...
a throttle is very easy to do by yourself:
but of course you can install and use the throttle node.
it is fast and reliable and useful
now = Date.now();
then = context.get("then")||0;
if (now-then < 150){
return null;
}else{
context.set("then",now);
return msg;
}