def inflate_cost(raw_cost, current_cpi, cpi_time_variant):
    """
    Calculate the inflated cost associated with raw_cost, considering the current CPI and the CPI corresponding
    to the date considered (cpi_time_variant).

    Returns:
        The inflated cost
    """

    return raw_cost * current_cpi / cpi_time_variant