The timing of prepayment: A theoretical analysis