calculate portfolio attribution