# Automatic Scheduling

**URL:** <https://community.dhis2.org/t/automatic-scheduling/45961>\
**Category:** Support - Assistance technique\
**Created:** [8 February 2022 09:26 UTC](https://community.dhis2.org/t/automatic-scheduling/45961 "2022-02-08T09:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmbantu](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/d/85f322/32.png) [@dmbantu](https://community.dhis2.org/u/dmbantu)\
**Post date:** [8 February 2022 09:26 UTC](https://community.dhis2.org/t/automatic-scheduling/45961/1 "2022-02-08T09:26:34Z")

</div>

Hi community,

We would like to create (a) program rule(s) to automatically schedule event fifteen days from enrollment in a repeatable program stage. Can anyone help us with a step by step explanation?

Thanks

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [10 February 2022 18:18 UTC](https://community.dhis2.org/t/automatic-scheduling/45961/2 "2022-02-10T18:18:18Z")

</div>

HI @dmbantu,

I’m basically making use of the steps mentioned in this doc: [Create Program Stages](https://docs.dhis2.org/en/use/user-guides/dhis-core-version-master/configuring-the-system/programs.html#:~:text=Click%20add%20stage.-,Create%20program%20stages,-A%20program%20consist)

In your tracker program settings, click program stage then:

1. Click the plus sign to create a program stage.
2. After entering the details, you will find **Scheduled days from start** field, enter 0 because you will choose the date to be based on enrollment.
3. Select that the program stage is **Repeatable**
4. Enter **Standard interval days**. The number of days to repeat the repeatable program stage: **fifteen days**
5. Select **auto-generate event** and **Generate events based on enrollment date**

These are the necessary setting sot make an auto-generated event every 15 days from enrollment. You don’t need to use a program rule here.

I hope this helps! Thanks!
