calculate selected CAP and shown in the title