Lambda Function to get Elapsed Time

Sorry it took a while to get back to you on this, I’ve been out of the country.

Without seeing your whole rule (or at least the lambda function, and then the rule from which you call it) I can’t really guess what is going on. If you could post all of that inside code fences I would be glad to take a look.

Thanks!