add new calculate method.