Better statistics calculator