Compute new index as distance between begin and upper bound

Authored by ahiemstra on May 25 2020, 10:16 AM.