Please have a look to the excel file in annex. I explain the problem inside the file and have already solve the problem on my way but I think not in an optimal way. Thanks in advance.