# CALCDATE, dateformula and int

**URL:** <https://www.dynamicsuser.net/t/calcdate-dateformula-and-int/9668>\
**Category:** Developers Forum\
**Created:** [February 10, 2005, 8:27am UTC](https://www.dynamicsuser.net/t/calcdate-dateformula-and-int/9668 "2005-02-10T08:27:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dina](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Dina](https://www.dynamicsuser.net/u/Dina)\
**Post date:** [February 10, 2005, 8:27am UTC](https://www.dynamicsuser.net/t/calcdate-dateformula-and-int/9668/1 "2005-02-10T08:27:03Z")

</div>

Hi! I am trying to calculate a date by using PeriodeLength, which is a dateformula type, and number of periods which is an int. Further I am going to use the CAlCDATE and a referance date to find the exact posting date. Do you know a way to multiply the number of periods by the dateformula type? example: PeriodLength is 3M. Number of periods is 2. How can I do 2\*‘3M’ and use the result in CALCDATE(ANSWER,REFDATE)? Can anyone help me pleeease?

---

<div class="post-metadata">

**Author:** ![thomasbrodkorb](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@thomasbrodkorb](https://www.dynamicsuser.net/u/thomasbrodkorb)\
**Post date:** [February 10, 2005, 8:29am UTC](https://www.dynamicsuser.net/t/calcdate-dateformula-and-int/9668/2 "2005-02-10T08:29:37Z")

</div>

Try this: ` FOR I:= 1 to NumberOfPeriods DO RefDate := CALCDATE(PeriodLength,RefDate); `

---

<div class="post-metadata">

**Author:** ![Dina](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Dina](https://www.dynamicsuser.net/u/Dina)\
**Post date:** [February 10, 2005, 9:22am UTC](https://www.dynamicsuser.net/t/calcdate-dateformula-and-int/9668/3 "2005-02-10T09:22:25Z")

</div>

Thank you! This works just fine! You saved my dag!
