calculate length of hand