Calculate event size based on event format