# I need to do math to an indirect tag

**URL:** <https://forum.inductiveautomation.com/t/i-need-to-do-math-to-an-indirect-tag/12520>\
**Category:** General Discussion\
**Created:** [January 5, 2017, 2:03pm UTC](https://forum.inductiveautomation.com/t/i-need-to-do-math-to-an-indirect-tag/12520 "2017-01-05T14:03:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmatney](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nmatney](https://forum.inductiveautomation.com/u/nmatney)\
**Post date:** [January 5, 2017, 2:03pm UTC](https://forum.inductiveautomation.com/t/i-need-to-do-math-to-an-indirect-tag/12520/1 "2017-01-05T14:03:52Z")

</div>

I am indirectly referencing some data through an indirect tag tied to a dropdown. My issue is that my data is in milliseconds and I need to divide by 1000 to get seconds. I can do that through an expression, but I can’t figure out how to do an indirect tag and an expression at the same time.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 5, 2017, 11:50pm UTC](https://forum.inductiveautomation.com/t/i-need-to-do-math-to-an-indirect-tag/12520/2 "2017-01-05T23:50:27Z")

</div>

Use the [tag()](https://docs.inductiveautomation.com/display/DOC79/tag) function to construct your indirect tag reference, then do your math.

---

<div class="post-metadata">

**Author:** ![nmatney](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nmatney](https://forum.inductiveautomation.com/u/nmatney)\
**Post date:** [January 6, 2017, 3:08pm UTC](https://forum.inductiveautomation.com/t/i-need-to-do-math-to-an-indirect-tag/12520/3 "2017-01-06T15:08:51Z")

</div>

That did it!

Thanks
