# Calculate endtime with given timestamp and duration

**URL:** <https://discuss.elastic.co/t/calculate-endtime-with-given-timestamp-and-duration/133333>\
**Category:** Logstash\
**Created:** [May 25, 2018, 2:29pm UTC](https://discuss.elastic.co/t/calculate-endtime-with-given-timestamp-and-duration/133333 "2018-05-25T14:29:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarBel78](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marbel78/32/28822_2.png) [@MarBel78](https://discuss.elastic.co/u/MarBel78)\
**Post date:** [May 25, 2018, 2:29pm UTC](https://discuss.elastic.co/t/calculate-endtime-with-given-timestamp-and-duration/133333/1 "2018-05-25T14:29:09Z")

</div>

Hi, i've problems with ruby to calculate endtime from timestamp and given duration in seconds.

Is there a easy way to add a calculated endtime field?

Merci

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 25, 2018, 3:27pm UTC](https://discuss.elastic.co/t/calculate-endtime-with-given-timestamp-and-duration/133333/2 "2018-05-25T15:27:54Z")

</div>

> [@MarBel78](#):
>
> Is there a easy way to add a calculated endtime field?

There is an example of that [here](https://discuss.elastic.co/t/increment-timestamp-with-a-float-field/131915/2).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 22, 2018, 3:27pm UTC](https://discuss.elastic.co/t/calculate-endtime-with-given-timestamp-and-duration/133333/3 "2018-06-22T15:27:55Z")

</div>

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