Salary detail of 8 employees are given below.

Develop a formula to compute tax under the following conditions.
1. Tax rate-20%
2. For males, Rs. 2,00,000 is allowed as standard deduction. For females, if taxable income is less than or equal to Rs. 5,00,000, then Rs. 3,00,000 is allowed as standard deduction, otherwise Rs. 2, 50,000. Use suitable logical function.