stats: incorrect clock square algorithm