$(document).ready(function(){
$("input").focus(function(){
var fee = parseInt($("#fee").val());
var installments = parseInt($("#installments").val());
$("#installment_fee").val(fee/installments);
});
$("input").blur(function(){
var fee = parseInt($("#fee").val());
var installments = parseInt($("#installments").val());
$("#installment_fee").val(fee/installments);
});
});