In this example, a swim club sells memberships based on family size & ages of family members.
- Single Membership (1 member): $100
- Senior Single Membership (1 member & 65+): $75
- Couples Membership (2 members): $200
- Senior Couples Membership (2 members & both 65+): $150
- Family Membership (3-6 members): $400
- Add additional members (above 6): $50 each
- Infants under 2 years old are free
GO TO: CONSTANTS TAB
Step 1 (repeat step 1 for each member count scenario)
Create or confirm the constants that determine the fees.
- Constant Name:
- We recommend: MEMBER_COUNT_FEE_1
- We recommend: MEMBER_COUNT_FEE_1_SENIOR
- We recommend: MEMBER_COUNT_FEE_2
- We recommend: MEMBER_COUNT_FEE_2_SENIOR
- We recommend: MEMBER_COUNT_FEE_3_ABOVE
- We recommend: MEMBER_COUNT_FEE_ADD_MEMBER
- Value (enter the fee):
- In this example, we entered: 100
- In this example, we entered: 75
- In this example, we entered: 200
- In this example, we entered: 150
- In this example, we entered: 400
- In this example, we entered: 50
- Description
- We recommend: Enter the membership fee if the membership count is 1.
- We recommend: Enter the membership fee if the membership count is 1 w/ 65+.
- We recommend: Enter the membership fee if the membership count is 2.
- We recommend: Enter the membership fee if the membership count is 2 & both 65+.
- We recommend: Enter the membership fee if the membership count is 3 and above.
- We recommend: Enter the fee for additional members above 6.
Step 2 (repeat step 2 for each age group scenario)
Create or confirm the constants that determine ages.
- Constant Name:
- We recommend: AGE_SENIOR
- We recommend: AGE_INFANT
- Value (enter the fee):
- In this example, we entered: 65
- In this example, we entered: 2
- Description
- We recommend: Seniors are this age and over.
- We recommend: Infants are under this age.
GO TO: CALCULATIONS TAB
Step 3
You'll need a calculation that counts the number of total members (MemberCount). Then you'll need a calculation that counts or calculates the number of members in each age group. In this example, we'll count the number of Seniors, Infants, and Paid Members.
Add or adjust the calculations...
- Result Name:
- We recommend: MemberCount
- We recommend: SeniorCount
- We recommend: InfantCount
- We recommend: MemberCountPaid
- Expression:
- Use: children(patronsgroup)
- Use: countIfCmp("patronAge", #AGE_SENIOR, ">=")
- Use: countIfCmp("patronAge", #AGE_INFANT, "<")
- Use: {MemberCount}-{InfantCount}
Step 3 (repeat step 3 for each member count scenario)
Confirm, add, or adjust the calculations that determines IF the membership count is X then the fee is the constant in step 1.
- Result Name:
- We recommend: MembershipFeeIfCount1
- We recommend: MembershipFeeIfCount1Senior
- We recommend: MembershipFeeIfCount2
- We recommend: MembershipFeeIfCount2Senior
- We recommend: MembershipFeeIfCount3Above
- We recommend: MembershipFeeAddMember
- Expression:
- Use: if({MemberCountPaid}==1&&{SeniorCount}==0, #MEMBER_COUNT_FEE_1,0)
- Use: if({MemberCountPaid}==1&&{SeniorCount}==1, #MEMBER_COUNT_FEE_1_SENIOR,0)
- Use: if({MemberCountPaid}==2&&{SeniorCount}<2, #MEMBER_COUNT_FEE_2,0)
- Use: if({MemberCountPaid}==2&&{SeniorCount}==2, #MEMBER_COUNT_FEE_2_SENIOR,0)
- Use: if({MemberCountPaid}>2, #MEMBER_COUNT_FEE_3_ABOVE,0)
- Use: if({MemberCountPaid}>6, ({MemberCountPaid}-6)*#MEMBER_COUNT_FEE_ADD_MEMBER,0)
Step 4
Confirm, add, or adjust the calculation that combines all the count based scenarios. 1, 2, 3+, Additional Member, etc.
- Result Name: MembershipFeeTotal
- Expression: This example uses 6 senecios, we used: {MembershipFeeIfCount1}+{MembershipFeeIfCount1Senior}+{MembershipFeeIfCount2}+{MembershipFeeIfCount2Senior}+{MembershipFeeIfCount3Above}+{MembershipFeeAddMember}

Step 5
Most communities already have a calculation that includes Membership Fees into your community's Total Fees. It is often called: {TotalFeesWithoutProcess}
Confirm, add, or adjust the calculation...
- Result Name: {TotalFeesWithoutProcess}
- Expression: Be sure the Step 5's result is included in Step 6's expression.
Step 6 (optional)
Confirm, add, or adjust the calculation that creates an error message if the membership type does not match the member count.
In this example, we're choosing not to write any error messages. If you wish to,
CLICK HERE to learn how.
GO TO: FORM TAB
Step 7
Use a CALCRESULT FIELD field to display the membership fees.
Unhide, add, or adjust the field...
- Field Name: DisplayMembershipFeeTotal
- Field Label: Membership Fees: $
- Calculation Result Name: MembershipFeeTotal
- Decimal Places: 2
Note: Copy & Repeat Step 7 in your member section, payment section, or as needed. This step is not critical, it simply shows the fees for your members so they know what they are paying.
Step 8
Important: Use a hidden INLINECALCULATION FIELD field to calculate each member's age.
Add or confirm the following field is within the patronsgroup. Place it directly under the field patronBirthDate.
- Field Name: patronAge
- Field Label: Age:
- Initially Hidden: Checked
- Calculation Result Name: age(sibling("patronBirthDate"))
- Decimal Places: 0