Similar Items: Computing the unit group of a commutative finite $mathbb{Z}$-algebra