# OAS of a perpetual bond

How is the OAS (Option Adjusted Spread) of a perpetual bond with embedded option calculated? My specific point of doubt is the maturity that has to be used to construct the binomial tree for performing OAS calculation. Is there a defined logic in choosing the maturity required for binomial tree construction?