Accordingly, there is a need for determining for a given debt instrument whether it is optimal at any given time or for any given conditions to initiate the refinancing process or to lock the interest rate on a debt instrument, such as the interest rate on a mortgage.