from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'multiply_app' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 factor = float(2) class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): number_entered = models.FloatField() # PAGES class MyPage(Page): form_model = 'player' form_fields = ['number_entered'] class ResultsWaitPage(WaitPage): pass class Results(Page): @staticmethod def vars_for_template(player: Player): #first calculate the result result = player.number_entered * C.factor return { 'result': result } page_sequence = [MyPage, Results]