In the below code, I am trying to output a rolling mean of Time for each Name where previous entries (sorted by date) for Total is a match for the