calculate insight stats