Hello there! can anyone help me convert this Python script to script erpnext supports?
Calculate tiered tax based on SSF value from the document
def calculate_tiered_tax(SSF):
result = 0
if SSF > 490:
result += min(SSF - 490, 110) * 0.05
if SSF > 600:
result += min(SSF - 600, 130) * 0.1
if SSF > 730:
result += min(SSF - 730, 3166.67) * 0.175
if SSF > 3896.67:
result += min(SSF - 3896.67, 16000) * 0.25
if SSF > 19896.67:
result += min(SSF - 19896.67, 30520 - 19896.67) * 0.3
if SSF > 30520:
result += (SSF - 30520) * 0.35
return result