I am currently performing these operations and setting the final value in a hidden item.Is there any other way to do the same.