For many technical systems, stress-strength models are of special importance. Stress-strength models can be described as an assessment of the reliability of the component in terms of X and Y random variables where X is the random "stress" experienced by the component and Y is the random "strength" of the component available to overcome the stress. The reliability of the component is the probability that component is strong enough to overcome the stress applied on it. Traditionally, both the strength of the component and the applied stress are considered to be both time-independent random variables. But in most of real life systems, the status of a stress and strength random variables clearly change dynamically with time. Also, in many important systems, it is very necessary to estimate the reliability of the component without waiting to observe the component failure. In this paper we study multi-state component where component is subjected to two stresses. In particular, inspired by the idea of Kullback-Leibler divergence, we aim to propose a new method to compute the dynamic reliability of the component under stress-strength model. The advantage of the proposed method is that Kullback-Leibler divergence is equal to zero when the component strength is equal to applied stress. In addition, the formed function can include both stresses when two stresses exist at the same time. Also, the proposed method provides a simple way and good alternative to compute the reliability of the component in case of at least one of the stress or strengths quantities depend on time.