Use floor division instead of int casting when ranking itags