Update to ranking formula