The order is set to Complete and Processing from the beginning. It’s not able to correctly detect the number of times a user has purchased the class. As members can only purchase a limited amount of class for each membership. It applies the wrong formulas.