Created a variable anc calculation of average live event length