def ch2h(ch, e):
    """Transform from *h* index value to *w* count value, using the
    *e.css('ch')* (column height) as column measure."""
    if ch is None:
        h = 0
    else:
        gh = e.gh
        h = ch * (e.css('ch', 0) + gh) - gh
    return h
