How to assign calculation values to a field ?