# Enrollments Limit Based on Facility

**Applicable Product:**

PeopleFluent Learning

**Applicable Release:**

All Versions

**Summary:**You can base the limit for the maximum number of enrollments in a physical class on the capacity of the training facility hosting it. This enrollment limit also takes into consideration other enrollments that might have taken place for other courses using the same facility at the same time. If a facility's maximum number of seats is set to zero, this is interpreted as not having a limit.

**Seats Remaining Calculation Logic**

Suppose a course session uses the dynamic enrollment limit (that is, based on facility) and all its separate classes are held at one facility. If there are other sessions sharing the same facility at the same time, the seats remaining for this session can be described by the following formula:

However, if the course session's classes are held in different facilities then the calculation becomes:

This is more easily demonstrated via some examples:

Scenario A

Facility

*F1*has only 30 seats.

Sessions

*S1, S2*and

*S2*have classes all located at

*F1*on the same day, with their schedules overlapping.

Suppose that each session has 10 learners enrolled.

The following diagrams show the classes' start and end times and how they overlap.

**Example 1:**

S1 (10:00-11:30) ----

S2 (09:00-11:00) ----

S3 (10:45-12:00) ----

In this example, since there is a period in time when all three classes are in the same facility, all 30 seats in the facility have effectively been used up and no more enrollments can be accepted for any of the three sessions.

**Example 2:**

S1 (10:00-11:30) ----

S2 (09:00-11:00 -----

S3 (11:15-12:30) ----

In this example, at any point in time, there is at most 20 learners in the facility, therefore, the number of seats which remain available for enrollment is 10.

Scenario B

Consider the more complicated scenario where one session has two classes held at different facilities:

- Facility
*F1*has 30 seats, Facility*F2*also has 30 seats.

- Sessions
*S1, S2*and*S3*each have a class located at*F1*on Day 1, with their schedules overlapping.

- Each session has 10 learners enrolled.

- Session
*S1*has an additional class located at*F2*on Day 2.

The following diagrams show the classes' start and end times and how they overlap.

At facility F1 on Day 1:

S1 (10:00-11:30) ----

S2 (09:00-11:00) ----

S3 (11:15-12:30) ----

At facility F2 on Day 2:

S1 (10:00-11:30) ----

In this example, although facility *F2* has 30 seats available for the single session on Day 2, there are only 10 free seats available for enrollment at any time on day 1 for sessions *S1* and *S2*. Therefore, the maximum number of seats remaining for enrollment in session *S1* is 10, because the participants will be attending both days.

Scenario C

Facility *F1* has 30 seats.

Sessions *S1, S2* and *S3* have classes located at F1 on Day 1, with their schedules overlapping. Each session has 10 learners enrolled.

In addition, *S1* has another class located at *F1* on Day 2, and so does session *S4*, which has 20 learners enrolled.

At facility F1 on Day 1:

S1 (10:00-11:30) -----

S2 (09:00-11:00) -----

S3 (11:15-12:30) ----

At facility F2 on Day 2:

S1 (10:00-11:30) ----

S2 (09:00-11:00 ====

In this example, since no more enrollment is possible for *S1* on Day 2, it is not possible to enroll another learner for *S1* even though 10 seats are available for Day 1.**LMS Functions that Use Seats Remaining Calculations**

The seat availability logic is used by the following LMS features:

- The available number of seats for enrollment, as displayed in the LMS or retrieved via the API.
- The enrollment process
- Waitlist handling

In the example in Scenario C, if waitlisting is enabled with automatic upgrade, and one of the enrolled learners decides to withdraw from session *S4*, then it is possible for a waitlisted learner of either *S1* or *S4* to become enrolled. The order upgrade precedence depends on who joined the waitlist first.

Scenario D: Waitlist Upgrade

Facility *F1* has 5 seats.

Session *SA* has a fixed enrollment limit of *2* while session *SB* has a dynamic enrollment limit.

Their classes are both located at *F1* at the same time and both sessions have the waitlist option set to *Automatic Upgrade*.

Two learners are enrolled in session *SA* and three learners are enrolled in session *SB*. Further enrollment attempts will result in learners being waitlisted.

The following examples show how the order in which learners are waitlisted can affect the auto-upgrade result.**Example 1:**

Learner *B* attempts to enroll onto session *SB* and is waitlisted.

Learner *A* attempts to enroll onto session *SA* and is waitlisted.

Now if a learner withdraws from session *SA*, both learners *A* and *B* will be upgraded and become enrolled onto sessions *SA* and *SB* respectively. This is because the upgrade logic considers all waitlisted users in both sessions *SA* and *SB* since they are located at *F1*.

As learner *B* is wait-listed before learner *A*, they are considered first, using the dynamic enrollment limit on session *SB*. A spare seat at the facility *F1* means learner *B* can become enrolled. Next, learner *A* is considered using the fixed enrollment limit of *2*. After the withdrawal, there is only one learner in session *SA* so learner *A* is upgraded.**Example 2:**

Learner *A* attempts to enroll onto session *SA* and is waitlisted.

Learner *B* attempts to enroll onto session *SB* and is waitlisted.

In this situation, if a learner withdraws from session *SA*, only learner *A* is upgraded:

- As learner
*A*is waitlisted before learner*B*, they are considered first, using the fixed enrollment limit of session*SA*.

- After the withdrawal there is only one learner in session
*SA*so learner*A*is upgraded. Now learner*B*is considered, using the dynamic enrollment limit for session*SB*. After the learner*A*is enrolled, the facility is full again so learner*B*remains waitlisted.

However, if a learner withdraws from session *SB*, only learner *B* is upgraded:

- As learner
*A*is waitlisted before learner*B*, they are considered first, using the fixed enrollment limit of session*SA*. As there are still two learners in session*SA*, learner*A*remains waitlisted.

- Now learner
*B*is considered, using the dynamic enrollment limit for session*SB*. A spare seat at the facility*F1*means learner*B*can become enrolled.