Leave Balance Carry forward

How to set carry forward option for some leave types… Need to carry forward the balance days to next year automatically…