Added early payoff calculate function