<DIV>
<DIV>Hi Terry,</DIV>
<DIV>&nbsp;</DIV>
<DIV>After testing the Julian day calculation in U.S. Naval observatory website <A href="http://aa.usno.navy.mil/data/docs/JulianDate.html">http://aa.usno.navy.mil/data/docs/JulianDate.html</A>&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>and comparing the results for both formula's i was surprised to get on both of them incorrect </DIV>
<DIV>&nbsp;</DIV>
<DIV>results for the date (24/06/2002)&nbsp; .... using your formula i got "2452408.98" in Julian format</DIV>
<DIV>&nbsp;</DIV>
<DIV>using the other formula i got "2452439.41"</DIV>
<DIV>&nbsp;</DIV>
<DIV>regarding the fin.c code for the financial calculator i went through it several times but the </DIV>
<DIV>&nbsp;</DIV>
<DIV>equations&nbsp; that&nbsp; are not clear to me for example i have a deal that has the following parameters :</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>financed amount&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3076.5</STRONG></DIV>
<DIV><STRONG>payment term&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 60 months</STRONG></DIV>
<DIV><STRONG>future value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;4440</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>no grace period ..... does it affect the calculation if it is existed ?</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>using the following equations would you mind mapping those parameters to any of them </DIV>
<DIV>&nbsp;</DIV>
<DIV>explaining why you choose specific one that the others</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<TABLE width="100%">
<TBODY>
<TR>
<TD class=large align=left>
<P>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if PMT*FV &gt;= 0, then PV case&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <U>what does this condition mean ?<BR></U> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if PMT*FV &lt;&nbsp; 0, then FV case&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <U>what does this condition mean ?<BR></U></P>
<P><U>How the guessing part is being handled here ?</U><BR>&nbsp;*<BR> *&nbsp;&nbsp;&nbsp;&nbsp; PV case:<BR> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | n*PMT + PV + FV |<BR> * 16)&nbsp;&nbsp;&nbsp;&nbsp; i[0] = | ----------------|<BR> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; n*PV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR> *<BR> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = abs[(n*PMT + PV + FV)/(n*PV)]<BR> *<BR> *&nbsp;&nbsp;&nbsp;&nbsp; FV case:<BR> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a) PV != 0<BR> *<BR> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FV - n*PMT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR> * 17)&nbsp;&nbsp;&nbs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<BR></P></TD></TR></TBODY></TABLE></DIV>
<DIV><BR><BR><B><I>Friends &lt;fastsnip-frnds1@yahoo.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Saturday 18 December 2004 08:52, saher edris wrote:<BR>&gt; I could like some clarification regarding ... how Newton's Raphson is being<BR>&gt; used in calculating the nominal interest rate from given parameters like<BR>&gt; "p.v. , payment term,f.v."<BR>&gt;<BR>&gt;<BR>&gt; Regards<BR>&gt;<BR>&gt; Saher Edris<BR><BR>Please examine the file "src/calculation/fin.c". In particular read the <BR>comment lines starting at line 475 and continuing to line 528. These lines <BR>explain the calculation of interest from the other four parameters.<BR><BR>I am sure that if you read the comment lines starting at line 24 and <BR>continuing through line 1,130, they will explain most of the questions you <BR>might have about the financial calculator computations. I tried to explain as <BR>much as possible in the comment lines about not only the code, but the logic <BR>behind the code and the
 financial calculation assumptions. Approximately half <BR>of the file is comments on the financial equations, how they are coded and <BR>their use.<BR><BR>Have you been able to compare your JDN modification against the USNO <BR>computation and/or against the other test dates I sent?<BR><BR>Terry<BR><BR>-- <BR>++++++++++++++++++++++++++++++++++++++++++++++++++++++<BR>======================================================<BR>******************************************************<BR><BR>"A human being is part of the whole called by us the <BR>Universe. We experience ourselves, our thoughts and <BR>feelings as something separated from the rest --a kind <BR>of optical delusion of consciousness.<BR>This delusion is a kind of prison for us, restricting <BR>us to our personal desires and to affection for a few <BR>persons nearest us. Our task must be to free ourselves <BR>from this prison by widening our circle of compassion <BR>to embrace all living creatures, and the whole of <BR>nature
 in its beauty."<BR><BR>Albert Einstein.<BR><BR>"We can't solve problems by using the same kind of <BR>thinking we used when we created them." <BR>--Albert Einstein<BR><BR>******************************************************<BR><BR>We have the best government money can buy, and it has.<BR><BR>Terry Boldt. <BR><BR>******************************************************<BR><BR>You must decide: <BR><BR>Are you a body with a soul or a soul with a body?<BR><BR>Terry Boldt<BR><BR>******************************************************<BR><BR>When you change the way you look at things, <BR>the things you look at change.<BR><BR>******************************************************<BR>Paraphrasing Ben Franklin:<BR><BR>Those who sacrifice freedom for safety, have neither.<BR><BR>The exact quote: <BR><BR>They that can give up essential liberty to obtain a little<BR>temporary safety deserve neither liberty nor safety.<BR>Benjamin Franklin (1706 - 1790),<BR>US author, diplomat, inventor,
 physicist, politician, &amp; printer<BR>Historical Review of Pennsylvania, 1759<BR><BR>******************************************************<BR>A thought often repeated becomes an act, an act often<BR>repeated becomes a habit, a habit often repeated,<BR>a character and a settled character molds the very<BR>destiny of man.<BR><BR>Man is the master of his own destiny.<BR><BR>"The Voice of Babaji", Page 236<BR>******************************************************<BR>What man thinks, that he becomes<BR><BR>Upanishad<BR>******************************************************<BR>Common sense is so very extraordinary <BR>for being for so very uncommon.<BR><BR>Terry Boldt<BR>******************************************************<BR>To say what is real,<BR>Must be exactly what we feel,<BR>To speak of the truth,<BR>And be open this way,<BR>Is to say what you mean,<BR>And mean what you say.<BR><BR>Pearl Boldt<BR>******************************************************<BR>"If you don't know, you
 cannot teach, except by faith.<BR>And faith implies doubt. Doubt and the resulting<BR>repression of doubt breed fanaticism and intolerance.<BR>Worse, they breed ignorance pretending to infallibility,<BR>which breeds charlatans and blind followers."<BR><BR>"Muddy Tracks", Frank DeMarco, page xxv<BR>******************************************************<BR>"for without time,no thought of anything is possible;<BR>without space, no conception of anything is possible and<BR>without causation no consideration of anything is possible. And<BR>again, time space and causation generally appear inter-related<BR>in our consciousness not dependent of one another.<BR>So the mind lives, moves and has its existence in these<BR>three notions, which are necessarily finite, owing to<BR>their perceptional value and without which we cannot think,<BR>conceive or imagine anything. Deprived of these three,<BR>the constitution of the mind breaks down."<BR><BR>"The Voice of Babaji", Page
 442-443<BR>******************************************************<BR>"The definition of and the mystery and meaning of faith,<BR>will open like a flower, only while sitting in silence.<BR>Faith in something greater than oneself is tantamount to<BR>a veil being withdrawn from the depths and distances<BR>glimmering within, and a feeling of eternal hunger for<BR>peace and fullness, for all that the distracted world<BR>of today denies. It is not possible to discover the Real<BR>and abide in it, except by our own experience."<BR><BR>"The Voice of Babaji", Page 444<BR>******************************************************<BR>******************************************************<BR><BR></BLOCKQUOTE></DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
Meet the <a href="http://my.yahoo.com">all-new My Yahoo!</a> – Try it today!