Hi Santosh,
Do this way create a two separate factoring. in one factoring call TASOLL and minusing LWP and Lay off absence and assign that into PC10 against Basic Pay to other four components (Except HRA & Medical).
In Second factoring call Lay Off absence and check it's present or not? If it's present then make it double and again following the same procedure same like 1st factoring. Assign this factoring to HRA and Medical PC10.
Check and let me know. It will work.
Regards,
Sankarsan