Half Paid Leave and Commuted Leave Calculation for PSU

I have Created one custom Field in Leave Application i.e. sub_leave_type and in that there is a option Commuted Leave so if someone took the Half Paid Leave in leave type and in sub_leave_type he selected the Commuted leave than the leave should be deduct twice of that and if he did not selected a sub_leave_type Commuted Leave than it should be deduct only 1
For More Understanding Please go through Below Link.