INTRATE
Financial

Returns the interest rate for a fully invested security

Syntax:

=INTRATE(settlement, maturity, investment, redemption, [basis])

Example:

=INTRATE("2/15/2023", "5/15/2023", 1000000, 1014420)