c = Taxable Income if c <= 170000:
result = c
elif 170000<c<=360000:
result = round(0.09 * (c - 170000))
elif 360000<c<=540000:
result = round(17,100 + (0.2 * (c - 360000)))
elif 540000<c<=720000:
result = round(53100 + (0.25 * (c - 540000)))
elif c>720000:
result = round(98100 + (0.3 * (c - 720000)))
else:
result = 0