I dont have an actual source, but from what I'm aware of it's base on the average of your party's weapon ilevel.