calc method