If a bond is callable, the relevant metric is determining the yield from date of purchase (or issue) to the first possible date that it could be called.