In App builder, when the name of a calculated field is changed in the ‘Code Editor’, the ID used in an earlier calculated formula (as part of the calculated code formula) doesn’t change. It retains the earlier ID. It's ideally supposed to take the new ID and not retain the earlier ID.