Compute reference score dynamically