28-1-1303. Effect when performance prevented by other causes. If full performance of an obligation is prevented by any cause excusing performance other than the act of the creditor, the debtor is entitled to a ratable proportion of the consideration to which the debtor would have been entitled upon full performance, according to the benefit that the creditor receives from the actual performance.