updated interval calculations