method for listview item calculation