Calculate table height, excluding vertical-align and percentage height. Remove some unnecessary parts.