# # This software is Copyright 2005 by Elsevier Inc. You may use it # under the terms of the license at http://perl.plover.com/hop/LICENSE.txt . # ### ### owed ### ## Chapter 6 section 6.4 sub owed { my ($P, $N, $pmt, $i) = @_; return $P * (1+$i)**$N - $pmt * ((1+$i)**$N - 1) / $i; }