As simulation time passes, I want to calculate bonding distance between two atoms.

As I mentioned I want to calculate bonding distance between two atoms.
One atom is composition of API and the other atom is composition of coformer.
Please help me...