def compute_taw(fc, pwp, depth, fraction):
    """
    Compute total available water
    :param fc: Field capacity
    :param pwp: permanent wilting point
    :param depth: depth of soil in mm
    :param fraction: float value
    :return: a float value for TAW
    """

    return depth * fraction * (fc - pwp)