Calculating the Reflection Coefficient of a well