calculate impressions