What do you do in order to run these scripts? Click buttons, select from the script menu, script triggers...?
The scripts as written look like they should work, though I would use Set Field in place of Insert Calculated Result. Insert Calculated Result only works correctly if the specified field is present on the current layout and Set Field doesn't have that limitation.
Thanks for the quick follow-up!
I'm using buttons and I also thought of the set field option.
Let me try it and see what we get