Newbies jwermis Posted December 17, 2002 Newbies Posted December 17, 2002 I am trying to create a prorated amount calculation based on a birth month and the month of an exam. Example: Birthday is 7/6/03 and the exam is 2/6/03. A difference of 5 months. That number is then multiplied by $14.58. I can't seem to get a calculation that will get the difference between the two dates and make it positive integer to multiple by the $14.58. Any suggestions? Thanks, Josef
Vaughan Posted December 17, 2002 Posted December 17, 2002 I hope you have the birthday and exam dates in real date fields, otherwise none of these calcs will work... Month(Exam) - Month(Birthday) but you also need to take the year into account, so it needs to be: ((Year(Exam) - Year(Birthday)) * 12) + Month(Exam) - Month(Birthday)
andygaunt Posted December 17, 2002 Posted December 17, 2002 Hi, try; Abs(Month(Date1) - Month(Date2)) * 14.58 HTH
Newbies jwermis Posted December 19, 2002 Author Newbies Posted December 19, 2002 Worked great. Thank you for your help on it. This will save us a lot of manual time. Josef
vierdewereld Posted December 20, 2002 Posted December 20, 2002 Been searching the whole forum but can't seem to find the right answer, so here goes another simple question: How can I calculate the amount of days before the birth date? With this formula I get in trouble when Status(CurrentDate) gets past the birth date. Case( Day(Status(CurrentDate)) = 31 and Day(birth date) < "30", "1", Min( Day(Status(CurrentDate)), 30)) - Min(Day(birth date), 30) + ((Month(Status(CurrentDate)) + Case( Day(Status(CurrentDate)) = 31 and Day(birth date) < "30", "1") - Month(birth date)) * 30) Any idea?
Recommended Posts
This topic is 8079 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now