filled out calc method