"Days" are the days between each date of sale and the previous one. I need to understand the average number of days that pass between one sale and another for the PV, still considering the last six months for each date of sale. Here what I expect to have: pv date date - 180 days days mean_days WRONG mean days CORRECT 2011164 02-mar-23 03-set-22 0 . 0 2011164 22-mar-23 23-set-22 20 10 0 2011164 06-apr-23 08-ott-22 15 7.5 10 2011164 21-apr-23 23-ott-22 15 7.5 11,66666667 2011164 05-mag-23 06-nov-22 14 7 12,5 2011164 18-mag-23 19-nov-22 13 6.5 12,8 2011164 01-giu-23 03-dic-22 14 7 12,83333333 2011164 15-giu-23 17-dic-22 14 7 13 2011164 30-giu-23 01-gen-23 15 7.5 13,125 2011164 14-lug-23 15-gen-23 14 7 13,33333333 2011164 28-lug-23 29-gen-23 14 7 13,4 2011164 18-ago-23 19-feb-23 21 10.5 13,45454545 2011164 04-set-23 08-mar-23 17 8.5 15,36363636 2011164 20-set-23 24-mar-23 16 8 15,09090909
... View more