Did you set the custom state value to that exact formula? However you don’t need to create a custom state, you could just use an input to calculate the formula and reference that input’s value into your popup.