compute idle cycles