compute Tag