Efficient way to compare/check when an entity was last changed?

It doesn’t look like the node accepts a variable for the adjustment value. You can though use the moment func as jsonata. This will add days based on the number in the input helper.

$moment().add($entity().state, 'd')

edit: removed extra word