thanks for the extra information.
Am I correct in understanding that you offer memberships just for taking classes and not for utilizing other parts of your facility? In that case, our calculation would be correct since you can link the membership fee directly to the classes.
I have never seen such a set-up. Typically, clubs charge a general membership where most classes are included in addition to other club services.