Hi. I would like to add a math function to my database. It would calculate the monthly payment of a loan and
the formula below is the one I've been told to use. The interst rate, and length(months) of loan
will be the same for all calculations(I would like to have two routines, one for 30 years and one for 15 years).
The loan "amount" needs to be pulled from the "Price" field.
I would like to be able to display the "monthly payment"(with some explanatory text) along with the desired fields
when a record is retreived, so the "monthly payment" could be assigned to a variable and does not need to be in a "field".
All records in this particular database would use this option, so there is no need to try and make it
only apply to specific records.
The interest rate would need to be changed manually when it changes, but that's no problem.
There may be a way around that too, but that's something for another time.
Formula:
Monthly payment = Loan amount x interest rate/12 x
(1+interest rate/12)(length of loan in months) (1+ interest rate/12)(length of loan in months) - 1
Any help would be really appreciated,
Spike
the formula below is the one I've been told to use. The interst rate, and length(months) of loan
will be the same for all calculations(I would like to have two routines, one for 30 years and one for 15 years).
The loan "amount" needs to be pulled from the "Price" field.
I would like to be able to display the "monthly payment"(with some explanatory text) along with the desired fields
when a record is retreived, so the "monthly payment" could be assigned to a variable and does not need to be in a "field".
All records in this particular database would use this option, so there is no need to try and make it
only apply to specific records.
The interest rate would need to be changed manually when it changes, but that's no problem.
There may be a way around that too, but that's something for another time.
Formula:
Monthly payment = Loan amount x interest rate/12 x
(1+interest rate/12)(length of loan in months) (1+ interest rate/12)(length of loan in months) - 1
Any help would be really appreciated,
Spike