# Custom calculation on time stamp on Y-axis

**URL:** <https://discuss.elastic.co/t/custom-calculation-on-time-stamp-on-y-axis/187225>\
**Category:** Kibana\
**Created:** [June 25, 2019, 4:59am UTC](https://discuss.elastic.co/t/custom-calculation-on-time-stamp-on-y-axis/187225 "2019-06-25T04:59:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rachit92](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rachit92](https://discuss.elastic.co/u/rachit92)\
**Post date:** [June 25, 2019, 4:59am UTC](https://discuss.elastic.co/t/custom-calculation-on-time-stamp-on-y-axis/187225/1 "2019-06-25T04:59:53Z")

</div>

Guys,

I am trying to do some analysis on the time stamped field. My goal is to find out the duration browsed for each device type.

To achieve this, I need to do maximum of request date - minimum of request date and do some division. Essentially it is this.

(max(request\_date)-min(request\_date))/(1000.0\*60.0). This will give me the duration. I need to plot this on the Y-axis and use X-axis for different devices such as iOS, Anroid etc.

How should I go about in achieving this in Kibana?

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [June 26, 2019, 12:45am UTC](https://discuss.elastic.co/t/custom-calculation-on-time-stamp-on-y-axis/187225/2 "2019-06-26T00:45:26Z")

</div>

I don't think there's an easy way to modify the Y axis like this. It might be possible with a Vega visualization, but I can not find any similar examples.

---

<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:** [July 24, 2019, 12:45am UTC](https://discuss.elastic.co/t/custom-calculation-on-time-stamp-on-y-axis/187225/3 "2019-07-24T00:45:29Z")

</div>

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