Dear Gayathri, Just to help you, first of all, if a person has joined on 15th July 2013, he will complete 6 months on 15th Jan '14. Until then, the accumulated leave as per your instruction is that in one month, the leave will be 1.5, totaling 9 days.
Date of Joining Discrepancy
In your chart, you have taken 22nd July as the date of joining. Why is that? It should be the 15th as mentioned by you. Then, you have to carry forward the leave every month after deducting the leaves taken each month. Finally, as shown in the chart, he will be left with only one day of leave. Also, you are only considering paid leave; sick and casual leave are fixed as per the company policy.
Leave Calculation Details
For paid leave, for every 20 days worked, you earn 1 leave. In the chart, you will need to account for all types of leaves, including LWP (Leave Without Pay) and any other leave policies that your company follows. I will try to attach your file back with some modifications.
Regards