Calculate Bond Number