Implement button calculate