Calculate and update field condition not working