pydef calculate_retirement_deduction(years): if years <= 20: return 400000 * years else: return 8000000 + 700000 * (years - 20)