It is considered a financial market analogous to Black-Scholes type with as financial underlying assets two bonds and it assume that their time evolutions are described by stochastic differential equations of McShane type. We obtain the term structure of interest rate of a zero-coupon bond and we extend two classical models - the model of Merton and the model of Vasicek, using the McShane stochastic calculus.