I have a suspicion that your UI only field is not actually getting populated. Put that field in a template, or build a table to see if you are actually getting values.
I think your model lookup function is returning a string, which is not working in your divide by calculation. You might wrap the model lookup section in a “Value()” Function.