Text this: A General Setting and Solution of Bellman Equation in Monetary Theory