A general mathematical concept is proposed to describe banking operation. To this end, a reference model of banking operation is introduced, which describes the evolution of capital by a Markov process. The ruin probability in the reference model that majorizes the bankruptcy probability of bank in the proposed model is estimated. The value of the initial bank capital such that the bank can operate for infinite time with a sufficiently small ruin probability is indicated.