Calculate blocks of the row