Formula Method for Bound State Problems