Calculate the bricks you need.