A mathematical approach to two indices concerning a portfolio of two univariate risky assets