added function for calculating the adjusted d2