Update calculate class.