Hi Vamshi,
Please refer the below documents for your requirement.
Grant of Absence Quotas in Time Evaluation
Balance Absence Quota Carry Forward – Method 1
If the employee takes more leave than he is entitled for at the time of termination, you can go for manual calculation and making quota adjustment in IT2013. There is a automatic way also but it is a complex solution.
I hope you will be able to build your solution based on the above documents.
Thanks and regards,
Vivek Barnwal