Ok then. You have hit counts collected by exact time stamps, and you want to average them over 15-minute intervals. Is the problem that you need to subtract dates and times in order to see if you are within an interval? Then maybe you need Date::Calc or Date::Manip (the latter has a lot of overhead).