I have a data frame with 3 variables (A, B and C), variables A and B refer to a product and variable C refers to the time it takes to change the production between variable