generate calculator according to friendlist