def AfterTaxIncome(combined, expanded_income, aftertax_income,
                   Business_tax_expinc, corp_taxliab):
    """
    Calculates after-tax expanded income.

    Parameters
    ----------
    combined: combined tax liability
    expanded_income: expanded income
    corp_taxliab: imputed corporate tax liability

    Returns
    -------
    aftertax_income: expanded_income minus combined
    """
    if Business_tax_expinc is True:
        expanded_income = expanded_income + corp_taxliab
    else:
        expanded_income = expanded_income
    aftertax_income = expanded_income - combined
    return aftertax_income