Calculate column widths