# Examples of Custom Quota Logic

Custom Quota logic allows course-certified users to apply quota logic to respondents outside of the Target Market page. Here are some examples of various custom quota logic scenarios.

**Click on the headings below to jump to a section:**

**Adding Minimum Quotas**

Minimums require
- Editor page: This quota would be entered into the Editor page as
**[Quota Q2A1 min 100]**
Helpful Hint: When adding quotas in the editor page, quotas must be added to questions ALL respondents will see, otherwise the system will be unable to properly count and the quotas will not work. |

**Adding Maximum Quotas**

Maximums require
- Editor page: This quota would be entered into the Editor page as
**[Quota Q1A3 max 50]**.
Helpful Hint: When adding quotas in the editor page, quotas must be added to questions ALL respondents will see, otherwise the system will be unable to properly count and the quotas will not work. |

**Adding Reverse Max Quotas**

Reverse Max logic is another way to create a minimum quota. To write a reverse maximum: - Subtract the minimum from the total sample size. This will give the number needed for the syntax.
- Create the syntax. Replace N with the number from your simple math problem:
**[Quota Not Q#A# MAX N]**
- Subtract N|100 from our total sample size N|400, to get N|300:
**N|400 - N|100 = N|300** - We can now string this logic into a syntax:
**[Quota NOT Q1A1 MAX 300]**
Helpful Hint: When adding quotas in the editor page, quotas must be added to questions ALL respondents will see, otherwise the system will be unable to properly count and the quotas will not work. |

**Adding Exact Quotas to a Radio Button**

Exact quotas require a If all answer choices need an exact quota, maximum logic may be applied to each answer choice. It is important to ensure the total sum is equal to the total sample size. However, if only a subset of answer choices have an exact quota need, a combination of Max and Min (or Reverse Max) logic must be used.
- The
**maximum**amount of responses Q1A1 can have is 300. This max quota would be:**[Quota Q1A1 max 300].** - The
**minimum**number of responses Q1A1 can have is 100. Using a Reverse Maximum quota would look like:**[Quota not Q1A1 max 100]** - String these two quotas together to make:
**[Quota Q1A1 max 300][Quota not Q1A1 max 100]**
Editor page: This quota would be entered into the Editor page as [Quota Q1A1 max 300][Quota not Q1A1 max 100]Helpful Hint: When adding quotas in the editor page, quotas must be added to questions ALL respondents will see, otherwise the system will be unable to properly count and the quotas will not work. |

**Adding Term Logic **

Terminates call for
**Editor page**: This term point would be entered into the editor page as**[Terminate if Q2A5]**
Helpful Hint: When adding quotas in the editor page, quotas must be added to questions ALL respondents will see, otherwise the system will be unable to properly count and the quotas will not work. |