def tax2015(income):
    """
    15% on the first $44,701 of taxable income, +
    22% on the next $44,700 of taxable income (on the portion of taxable income over $44,701 up to $89,401), +
    26% on the next $49,185 of taxable income (on the portion of taxable income over $89,401 up to $138,586), +
    29% of taxable income over $138,586.
    """
    amt = income
    tax_amt = 0

    first_amt = min(44701, amt)
    tax_amt = first_amt * 0.15
    amt = amt - first_amt

    second_amt = min(44700, amt)
    tax_amt = tax_amt + (second_amt * 0.22)
    amt = amt - second_amt

    third_amt = min(49185, amt)
    tax_amt = tax_amt + (third_amt * 0.26)
    amt = amt - third_amt

    tax_amt = tax_amt + (amt * 0.29)

    return tax_amt