release code/id calculation