here is my script. Thanks
What does the script "Refresh" do?
It may be that you need a commit records step in here.
The script "refresh" already has a commit records step in it (see screenshot)
Is the calculation a stored calcualtion field, unstored calculation field or text field with an auto-enter calculation?
I wouldn't expect this to be a problem if used in an unstored calculation field.