events, qi calculation