Add method for calculating relative DNs