Calculate pamms with same names