Calculating average leak magnitude based on all times within sub-period