Hi ,
The problem statement is not clear ; your statements are as follows :
1. If an employee works for 3 hours , he is to be paid 20 % of his basic salary.
This is straightforward ; =IF(Hours=3,Basic Salary*20%)
It does not specify what should happen if he / she works for less than or more than 3 hours.
2. If the employee works for 4 hours or more , then 30 % additional rate has to be paid of the assigned rate.
This is not clear ; why the words additional rate ? These were not used in the first statement ; why the words assigned rate ? ; Do these mean the same as Basic Salary ?
If the words additional rate don't mean anything , and if the words assigned rate are the same as Basic Salary , then we can add this to the first :
=IF(Hours=3,Basic Salary*20%, IF(Hours>=4, Basic Salary*30%)
3. If employee works for 2 hours then 15% less of the assigned rate.
Again , not so straightforward ; why the word less ?
If again , we ignore this word , then :
=IF(Hours=3,Basic Salary*20%, IF(Hours>=4, Basic Salary*30%, IF(Hours=2, Basic Salary*15%)
You need to define what should happen if the employee works for less than 2 hours.
If the words additional rate are relevant , then replace :
Basic Salary*30%
by
Basic Salary + Basic Salary*30%
If the word less is relevant , then replace :
Basic Salary*15%
by
Basic Salary - Basic Salary*15%
Narayan