# timeDuration configuration for every N days on N hours & N minutes for a specific timezone

**URL:** <https://forum.flowable.org/t/timeduration-configuration-for-every-n-days-on-n-hours-n-minutes-for-a-specific-timezone/4336>\
**Category:** Flowable Engine\
**Created:** [August 9, 2019, 1:08pm UTC](https://forum.flowable.org/t/timeduration-configuration-for-every-n-days-on-n-hours-n-minutes-for-a-specific-timezone/4336 "2019-08-09T13:08:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smjaveed](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@smjaveed](https://forum.flowable.org/u/smjaveed)\
**Post date:** [August 9, 2019, 1:08pm UTC](https://forum.flowable.org/t/timeduration-configuration-for-every-n-days-on-n-hours-n-minutes-for-a-specific-timezone/4336/1 "2019-08-09T13:08:50Z")

</div>

Hi,

I have a requirement wherein i have to run a process with a interval of 7 days.  
And on the 7th day, the process should run at 2 PM EST.  
Is there any configuration which will meet this requirement.

P7D - will run on every 7 day,  
PT2H - will run on every 2 Hour,  
PT1M - will run on every 1 minute,

But combination of this lets say PT7D2H30M will run on every 7th day, 2.30 AM ?

And also this should run on specific timezone irrespective of server timezone, lets say the server timezone is UTC & requirement time is EST.

Please help

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [August 12, 2019, 7:50am UTC](https://forum.flowable.org/t/timeduration-configuration-for-every-n-days-on-n-hours-n-minutes-for-a-specific-timezone/4336/2 "2019-08-12T07:50:30Z")

</div>

Hey @smjaveed,

I think that you have three options to do this.

### Use CRON Expression

You can use cron expressions and set the time of running in the server zone (if you know that all your servers are running in the same zone). You can also manually set the timezone for the Java application to a fix value.

### Implement your own custom business calendar

You can create a custom [BusinessCalendar](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-engine-common/src/main/java/org/flowable/common/engine/impl/calendar/BusinessCalendar.java)

### Use and register the `AdvancedCycleBusinessCalendar`

You can register the [AdvancedCycleBusinessCalendar](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-engine-common/src/main/java/org/flowable/common/engine/impl/calendar/AdvancedCycleBusinessCalendar.java) with the engine and then use that one as a custom business calendar.

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![vijay](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vijay](https://forum.flowable.org/u/vijay)\
**Post date:** [October 14, 2021, 7:39am UTC](https://forum.flowable.org/t/timeduration-configuration-for-every-n-days-on-n-hours-n-minutes-for-a-specific-timezone/4336/3 "2021-10-14T07:39:26Z")

</div>

@filiphr how to use the AdvanceCycleBusinessCalender in flowable engine is there any documentation to follow.
