# Using painless to calculate durations

**URL:** <https://discuss.elastic.co/t/using-painless-to-calculate-durations/119495>\
**Category:** Elasticsearch\
**Created:** [February 12, 2018, 3:16pm UTC](https://discuss.elastic.co/t/using-painless-to-calculate-durations/119495 "2018-02-12T15:16:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![crazyphil](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@crazyphil](https://discuss.elastic.co/u/crazyphil)\
**Post date:** [February 12, 2018, 6:44pm UTC](https://discuss.elastic.co/t/using-painless-to-calculate-durations/119495/7 "2018-02-12T18:44:48Z")

</div>

Actually, the default according to documentation is 1800 seconds (30 minutes). Mine needs to span 24 hours as some of the events I am tracking are long running.

---

_[View the full topic](https://discuss.elastic.co/t/using-painless-to-calculate-durations/119495)._
