How to compute the improper dihedral mentioned by you ?