confused about cost of capital

specifically for calculation of WACC.

i am seeing some problems with the forumla to use (risk free rate) + (beta)(equity risk premium - risk free rate ) and then some without the 2nd RFR. (risk free rate) + (beta)(equity risk premium)

it seems the first is for CAPM and the 2nd is just for calculating req return? is this correct or am i confused???

(risk free rate) + (beta)(Market return - risk free rate) OR. (risk free rate) + (beta)(equity risk premium) are the same guys

Market Return - RFR = Equity Risk Premium What you have used in the first formula is not Equity Risk Premium that is the Equity Risk inclusive of RFR whereas Equity Risk Premium is the add on premium over RFR which act as a compensation (premium) for risks associated with that security.