public static int GetInterpurchaseTimes<T>(IEnumerable<T> list, int range = 100)
{
if (list != null && list.Count() > 0)
{
return (int)Math.Ceiling(list.Count() / (double)range);
}
return 0;
}