creating calc V method