Net return on plan assets

The net return on plan assets = actual returns minus beginning plan assets times the discount rate.

Why are we using the discount rate here?

i.e., why do we use discount rate to measure the rate of return on plan assets? thanks.

Because when you calculate the asset return for your pnl expense you use the discount rate, so you adjust for it against actual returns in OCI to effectively true it all up.