updated statistics calculator to the new time schema