calculator - calculate method parameterized