This library calculates the