Hi Anil,
Please find below the document with step by step details of the solution.
Prorated Grant of Absence Quota for Contract Period in Time Evaluation
Regarding reducing the balance to 0, it is not needed as such because the quota will be valid till the end of contract period and one can't apply leave beyond that period.
I hope this is helpful for you and resolves your issue.
Regards,
Vivek