Author: JXCirrus

# Schedule Edit

This form lets you edit the schedule for a prayer, or the default schedule for a prayer type.

The two options for prayers schedules are:

- Use Score: This selects the most urgent prayers more often than less urgent prayers.
- Use Schedule: This lets the prayer be prayed on fixed days.

## Use Urgency

With prayers that use urgency, the prayers are selected by the highest score. The score of a prayer is "Urgency" + "Number of days since you last prayed it".

If you select "Use Urgency", you will see the "Urgency", "Add each time" and "Subtract each time" fields.

The urgency field lets you enter the urgency of a prayer.

The "Subtract each time" field lets the prayer urgency change each time you pray it. For example, you might want to pray a thanks prayer a lot at first, but gradually drop down over time. If you set urgency 10 with subtract 1, the prayer will have urgency 10 on the first time you pray it, 9 on the second, 8 on the time after that, until it reaches 1 (it will not go below 1). If you set subtract to 2, then urgency will be 10, 8, 6... If you set subtract to 0.5, then urgency will be 10, 9.5, 9, 8.5... If you set it to -1, then it will go up each time you pray.

The "Add each time" field works the same way, except that it adds to urgency. It will keep adding each time you pray until the urgency reaches the "Always pray" score (which is set in the prayer type).

If you set subtract to a value other than 0, you will see it shown as "10 (-1 next)" on the prayer edit or prayer details forms or "10 (+1 next)" if you use add.

If you tick to "Adjust to next event", the app will choose an "Add each time" that will bring the score to the maximum just before the next event for this prayer. If there is a second event after the first, the score will be dropped after the first event is completed, and will automatically go up for the next event.

## Use Schedule

### Repeat Type

The first thing to select is the type of repeat you want:

- Not Repeating - This option means that the prayer is a one off and does not repeat.
- H/M/S - This repeats every N hours/minutes/seconds.
- Days - This repeats every N days.
- Weeks - This repeats every N weeks on a set day (or days) of the week.
- Months - This repeats every N months on a set day (or days) of the month.
- Years - This repeats every N years on a set date (or dates) of the year.
- Expression - (Advanced use only) Uses a date expression to set the repeats (see below).
- Set Dates - You can set the repeat to happen on a specific set of dates (which you choose).
- Choice - The transaction is set to be a long way in the future, but you can change its date to be a specific date once you know when it happens.

Depending on the option you choose, different fields will be visible on the repeat tab.

### On (Which Days)

Pressing next to the On field, lets you select day on which the prayer repeats.

- If it repeats every N weeks, then you can pick the weekdays.
- If it repeats every N months, then you can pick the day of the month.
- If it repeats every N years, then you can pick the date of the year. You can also choose a week number and day of the week.
- If it repeats on set dates, you can select the dates to repeat on.

### Start and End

Pressing next to the Start Repeating field lets you start repeating from a specific date.

Pressing next to the Repeat Until field lets you stop repeating after a specific date.

### Excluding Days

Pressing next to the Exclude Repeating lets you exclude either:

- A single date from the repeat sequence.
- A range of dates from the repeat sequence.

### Test Page

Pressing next to the Repeat choice shows a page listing all of the predicted repeat times (based on other other fields in the repeat tab).
It also shows the repeat as an expression (which you can use for expression repeats).

### Expressions

You can copy the expression from the Test Page into the Repeat Due field and modify it as required. NOTE: This is only for advanced use.

### Subtract Each Time/Add Each Time

You can adjust the frequency of prayers each time you pray. Setting "Subtract Each Time" will adjust the interval. For example, if you set "Subtract Each Time" to "1", and you pray each 22 days, then after your next prayer, the prayer will be completed every 21 days (i.e. more often). Setting "Add Each Time" adds to the interval (i.e. less often).

## Pray When I Choose

Selecting this option means that the prayer will not be selected automatically, but you can choose it at any time you like. This could be useful if you want a particular type of group prayer not to be included in your usual prayers, but instead pray for them when you are in the group.