Calculate horizontal extent for each row