calculation library