calculates how many incidents were open on each day