How do I get the age of the employee when defining a salary rules like
if age < 35:
result = 0.17 * categories.BASIC
elif age >= 35 and age < 45:
result = 0.17 * categories.BASIC
elif age >= 45 and age < 50:
result = 0.17 * categories.BASIC
elif age >= 50 and age < 55:
result = 0.16 * categories.BASIC
elif age >= 55 and age < 60:
result = 0.12 * categories.BASIC
elif age >= 55 and age < 60:
result = 0.085 * categories.BASIC
elif age > 65:
result = 0.075 * categories.BASIC