calculate product of interval in set of changing#s