Question: how to calculate distance between two macros?
Answer: Distance between macros can be known from = ( number of pins of macros * pitch *2) / number of available routing layers.
or.
Generally space between macros are calculated distance = ( number of pins * pitch ) / (total number of available metals/2)