I would like to know how to calculate dates inside Kibana, for example, (end_date - start_date),
How long does it take for a driver to get from city A to city B?
is possible to do this calculation inside Query DSL and extract hours to compare hours.
You can have a look into runtime fields. That helps to calculate the time diff between two date fields within the same document.