script to calculate the runtime field
See more at https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html