GZ curve calculation