def Adj(e03150, e03210, c03260,
        e03270, e03300, e03400, e03500, e00800,
        e03220, e03230, e03240, e03290, care_deduction,
        ALD_StudentLoan_hc, ALD_SelfEmp_HealthIns_hc, ALD_KEOGH_SEP_hc,
        ALD_EarlyWithdraw_hc, ALD_AlimonyPaid_hc, ALD_AlimonyReceived_hc,
        ALD_EducatorExpenses_hc, ALD_HSADeduction_hc, ALD_IRAContributions_hc,
        ALD_DomesticProduction_hc, ALD_Tuition_hc,
        c02900):
    """
    Adj calculates Form 1040 AGI adjustments (i.e., Above-the-Line Deductions).

    Notes
    -----
    Taxpayer characteristics:

        e03210 : Student loan interest paid

        e03220 : Educator expenses

        e03150 : Total deductible IRA plan contributions

        e03230 : Tuition and fees (Form 8917)

        e03240 : Domestic production activity deduction (Form 8903)

        c03260 : Self-employment tax deduction (after haircut)

        e03270 : Self-employed health insurance premiums

        e03290 : HSA deduction (Form 8889)

        e03300 : Total deductible KEOGH/SEP/SIMPLE/etc. plan contributions

        e03400 : Penalty on early withdrawal of savings deduction

        e03500 : Alimony paid

        e00800 : Alimony received

        care_deduction : Dependent care expense deduction

    Tax law parameters:

        ALD_StudentLoan_hc : Student loan interest deduction haircut

        ALD_SelfEmp_HealthIns_hc : Self-employed h.i. deduction haircut

        ALD_KEOGH_SEP_hc : KEOGH/etc. plan contribution deduction haircut

        ALD_EarlyWithdraw_hc : Penalty on early withdrawal deduction haricut

        ALD_AlimonyPaid_hc : Alimony paid deduction haircut

        ALD_AlimonyReceived_hc : Alimony received deduction haircut

        ALD_EducatorExpenses_hc: Eductor expenses haircut

        ALD_HSADeduction_hc: HSA Deduction haircut

        ALD_IRAContributions_hc: IRA Contribution haircut

        ALD_DomesticProduction_hc: Domestic production haircut

        ALD_Tuition_hc: Tuition and fees haircut

    Returns
    -------
    c02900 : total Form 1040 adjustments, which are not included in AGI
    """
    # Form 2555 foreign earned income exclusion is assumed to be zero
    # Form 1040 adjustments that are included in expanded income:
    c02900 = ((1. - ALD_StudentLoan_hc) * e03210 +
              c03260 +
              (1. - ALD_EarlyWithdraw_hc) * e03400 +
              (1. - ALD_AlimonyPaid_hc) * e03500 +
              (1. - ALD_AlimonyReceived_hc) * e00800 +
              (1. - ALD_EducatorExpenses_hc) * e03220 +
              (1. - ALD_Tuition_hc) * e03230 +
              (1. - ALD_DomesticProduction_hc) * e03240 +
              (1. - ALD_HSADeduction_hc) * e03290 +
              (1. - ALD_SelfEmp_HealthIns_hc) * e03270 +
              (1. - ALD_IRAContributions_hc) * e03150 +
              (1. - ALD_KEOGH_SEP_hc) * e03300 +
              care_deduction)
    return c02900