# Doing currency Conversion and calculating Accrued Interest in a query

I do collection work for creditors in the UK who have clients in the US.
I have a database where the debtor has been invoiced in £GBP which I convert to \$USD on the day of invoicing.  When we receive payments from the debtor I need to convert it to £GBP based on the conversion rate that day.  In addition I have to track interest due on the account.  Presently the currency conversion and interest calculation is being done in an Excel spreadsheet and then entered back in Access.

Is there a way to design a query that will do an accrued interest calculation which is based on the intrerest rate, date of last payment to the date of current payment
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
You want to calculate the interest compounded on a daily basis?

If not, it is just a wee DateDiff("d", [LastDate], [ThisDate] to calculate the number of days (+ 1 if inclusive of the first day) and multiply this my the Daily interest rate (AnnualRate/365.25) and the Amount... I think...
0
Infotrakker SoftwareCommented:
I'm sure you could build a routine which did this, or perhaps even in a query. How exactly do you calculate this now? I'd assume something like:

(Amount Originally Owed) - (Payments Made) + Interest Charged

However compounding interest can be pretty complex, depending on the specific rules of your government and/or company or customers. If the Excel functions give you correct results, then you _could_ make a reference to Excel and use the formulas there to do the work for you.
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:
You want to calculate the interest compounded on a daily basis?

If not, it is just a wee DateDiff("d", [LastDate], [ThisDate] to calculate the number of days (+ 1 if inclusive of the first day) and multiply this my the Daily interest rate (AnnualRate/365.25) and the Amount... I think...
0
Commented:
If you wanted it compounded by the day, then I think the field would be:

[OrginalAmount] + ([OriginalAmount] * ((1 + [DailyInterestRate]) ^ DateDiff("d", [DateFrom], [DateTo]))

(^ is 'ToThePowerOf')
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.