edit calcIkcp method