compute adaptation value