Would it be possible to add a template/add on that counts the last time since an event occurred?

Photo Viewer

View photos in a modal