Determining agent compensation