Calculate "age" as scripted field

Hi. I have an Event table where for every document I have a timestamp. I want to have a scripted field Lifetime which is today - timestamp of an event converted do days(weeks). How I do it with painless? I am not very good for programming.
Is it also possible to have this field a dynamically changing?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.