I am registering students for a class, and would like to pass them on to Paypal after they complete the registration form to pay the tuition. The thing is we are offering an early registration discount. So somewhere on the form I would like a variable to be created, say EarlyReg, that is 1 if [date] is on or before my early registration date, and 0 if it is after. Then I would like to call this variable in the calculation portion of a read-only field that outputs a number equal to: #ofStudents*15*EarlyReg.
I think my if statement would look something like this:
Any help will be greatly appreciated, especially if someone could provide the code that I should put in the before or after fields of the HTML editor and tell me what to call in the calculation field.