implemented calcHandLen fcn