Documenting width and height calculation