Calculate weeks or months between dates

G

Guest

input fields
start date
end date
Frequency (Weekly or Monthly)

based on the frequency I need to determine the nbr of payments between 2 dates

ex.
start date = 1/30/06
end date = 4/9/06
frequency = weekly

result of calc should be 10

or if frequency = monthly

result of calc should be 2 (2 full months not just 4 - 1 given 3, must pay
attention full months of duration)

Thanks you for any and al input
 
G

Guest

I know for the weekly calculation I could determine the number of days
between the dates then divide by 7 to get weeks, but Monthly calculation is
more difficult
 
R

RD

input fields
start date
end date
Frequency (Weekly or Monthly)

based on the frequency I need to determine the nbr of payments between 2 dates

ex.
start date = 1/30/06
end date = 4/9/06
frequency = weekly

result of calc should be 10

or if frequency = monthly

result of calc should be 2 (2 full months not just 4 - 1 given 3, must pay
attention full months of duration)

Thanks you for any and al input

Take a look at these. Maybe one or more might help.
http://www.mvps.org/access/datetime/index.html

Regards,
RD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top