Hello, Anyone please tell me. I am trying to generate salary for an employee. the salary calculation goes in this way: eg: salary= 10000
number of paid leaves: 22 after a person takes 22 leaves then, he comes under unpaid leaves and then, his salary must be cut which will be like:
salary - number of days not worked*salary/number of days in that month