In this example, we'll create a $75 discount that expires May 1st, 2027 at 12 midnight EST. The discount will subtract $75 from the total fees.
Constants Tab
Step 1
A. Create a constant: EARLY_BIRD_DISCOUNT_END
B. Value: "2027-05-1 04:00:00"
C. Description: Enter the date and time UTC the early bird discount ends. Use yyyy-mm-dd hh:mm:ss format (in quotes).
Step 2
A. Create a constant: EARLY_BIRD_DISCOUNT
B. Value (if you are a straight value, enter it here): 75.00
C. Description: Enter the early bird's value ($). Enter a positive number.
Calculations Tab
Step 3
A. Create a calculation: EarlyBirdValue
B. This expression should calculate the discount's value. It can be a number, constant or another calculation.
Examples
If you are using the constant's value in step 2, use: number(#EARLY_BIRD_DISCOUNT)
If you are giving your members a 15% off membership dues, use : {MembershipFeeTotal}*0.15
If you are giving your members 50% off all guest fess, use: {GuestFeesTotall}*0.5
Step 4
A. Create a calculation: EarlyBirdTrigger
B. This return the early bird's value if the today's date is prior to the early bird's end date. Use: if((now() < dateVal(#EARLY_BIRD_DISCOUNT_END) ),{EarlyBirdValue},0)
Note
If you are basing your discount on previous calculations, the calculations in Step 3 &4 must be placed below all previous calculations. We recommend placing these 2 calculations just above the calculation used in step 5.
Step 5
A. Find the calculation you wish the discount to be subtracted from. Include the subtraction {EarlyBirdTrigger}.
In this example, we're using: {TotalFeesWithoutProcess}
Step 6
A. Create a CALCRESULT FIELD on your form. Place it in your payment section: DisplayEarlyBirdDiscount
B. Label the field: Early Bird Discount: $
C. Initially Hidden: Checked
D. Hide/Unhide Calculation: {EarlyBirdTrigger}>0
E. Calculation Result Name: EarlyBirdTrigger
F. Decimal Places: 2
