I am working on a query to calculate loan interest and print it out as part of a report. There is a billing date on the 16th of each month. If money is drawn from the available loan amount after the last billing date, a calculation is made based on the number of days from the billing date to the withdrawl date, the amount of money taken out before the withdrawl date, and the interest rate. Another calculation must also be made, only the number of days involved runs from the date of the withdrawal to the present, and it involves the new amount of withdrawals. There can be multiple withdrawals of varying amounts, and the times can also vary. is there a way to perform such a calculation in a query, such as a crosstab query?