def compute_wave_height(crest_height, trough_depth):
    """Computes wave height from given crest height and trough depth."""
    assert crest_height > trough_depth
    return crest_height - trough_depth