update calculateNextInterval

add code to test use wbMiss or not