Loan calculation or evaluation may involve various
aspects. These include the present value (also called the principal), the
interest rate, and the period. When it comes to the period, there are
various ways you can consider it, such as the number of years, the number of
months, or the number of days. In some cases, you can let the person who
does the calculation specify the type of period that would be used. In some
other cases, you can take care of that aspect yourself.
In this application, we will calculate the future value
of a loan, based on the number of days as the period. In this exercise, we
will provide the user with a calendar where he or she can specify the
starting date and the ending date of the loan. We will calculate the number
of days between these two dates and use it as the period.

