For those asking, this is the equation for working out a columnar grid working content-out. See this photo: