Calc relative phase between two nodes