# Help needed adding a value from Msg to give you a future timestamp

**URL:** https://discourse.nodered.org/t/help-needed-adding-a-value-from-msg-to-give-you-a-future-timestamp/44649
**Category:** General
**Created:** [24 April 2021 09:44 UTC](https://discourse.nodered.org/t/help-needed-adding-a-value-from-msg-to-give-you-a-future-timestamp/44649 "2021-04-24T09:44:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aperture1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aperture1988/32/40681_2.png) [@aperture1988](https://discourse.nodered.org/u/aperture1988)
#### Post date: [24 April 2021 09:44 UTC](https://discourse.nodered.org/t/help-needed-adding-a-value-from-msg-to-give-you-a-future-timestamp/44649/1 "2021-04-24T09:44:38Z")

</div>

Hi Guys,

I wonder if you could help me, I have spent hours trying to work this out on my own but im ready to admit defeat.

I need a way of taking the current time and adding a value from a msg to it. So it then outputs a future timestamp.

For example if the if the time is 10:00 and my msg.interval value is 10 it should then output 10:10.

I haven't been able to find node that can deliver this so I believe it will need to be coded using the function node. Im a complete Noob when it comes to this.

any help would be greatly appreciated

thanks

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [24 April 2021 10:07 UTC](https://discourse.nodered.org/t/help-needed-adding-a-value-from-msg-to-give-you-a-future-timestamp/44649/2 "2021-04-24T10:07:48Z")

</div>

Hi Craig, welcome to the forum!

This has been asked recently, see [this thread](https://discourse.nodered.org/t/how-to-calculate-future-time/44035/5)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 June 2021 10:08 UTC](https://discourse.nodered.org/t/help-needed-adding-a-value-from-msg-to-give-you-a-future-timestamp/44649/3 "2021-06-23T10:08:30Z")

</div>

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