You are here:

Advanced Math/Expenential Equation

Advertisement


Question
I am really stuck! I believe there is an answer to my problem, it is just beyond me.

I have vacation rental property. I normally do the price quotes for potential guests by hand. I would like to automate this process with a web-based application, but I can not figure out the formula for the discount that I apply to extended stay. I have a fixed daily rate for various property units, but I need a formula to determine the discount rate applied to the total of the sum of the daily rate.

These are the factors I need to recognize;
1) 0 - 5 days stay, there is no discount applied.
2) 6 day stay, has a fixed discount (currently $200).
3) 7 - 14 day stay has a $75 per day discount. ( 5 day = $525 OFF)

Here is where it gets tricky.  14 - 31 days, has a sliding scale discount rate.
- The more days stay, allow for a greater per day discount.
- I would indicate a predetermined minimum and  maximum rate for the 15 - 31 day stay respectively.
- The new average daily rate would then exponential decrease. Consequentially, the calculated discount rate would exponential increase daily.
- This formula should incorporate the prior days discount rate, and increase it by another pre-determined fixed rate (let's call it "Y"). Staying within the Maximum 31 day rate.
- I am open to the any variable "Y" figure that the discount and/or avg.-daily rate would increase/decrease by. This "Y" figure I would be able to play with to adjust the increasing discount distribution.

I put together this following webpage to chart the example of what I am looking to accomplish;
http://rentflamingo.com/discount_formula.htm

Please note that on day 15 and 31,  the discount applied to the Sub-Total would reflect the pre-determined the minimum and maximum value. It is the yellow highlighted area in between that I need a formula to calculate.

Well, I tried to be as descriptive as possible. If I was not clear about something in particular, please feel free to contract me.
Any assistance would be so greatly appreciated

Best Regards-

Noy



www.RentFlamingo.com  

Answer
These are the factors I need to recognize;
1) 0 - 5 days stay, there is no discount applied.
2) 6 day stay, has a fixed discount (currently $200).
3) 7 - 14 day stay has a $75 per day discount.
( 5 day = $525 OFF - I'm not sure where this came from,
since 5*75=375, but anyway... )

Let's give day 31 the price of only $X (since I don't see one given and I assume you want to be charging them something).  Let's also say they start at $Y and day 7.

Take (e^-n/e^-7) (X-Y) + Y to get the daily rate where n starts at 7 (day 7) and goes to 31 (day 31).

ln(e)=1, e=2.71828182845905.... (if I remember it correctly, but all you need is an calculator with exponentials and calculate exp 1.  

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scott A Wilson

Expertise

I can answer any question in general math, arithetic, discret math, algebra, box problems, geometry, filling a tank with water, trigonometry, pre-calculus, linear algebra, complex mathematics, probability, statistics, and most of anything else that relates to math. I can even tell you it takes me over 2,000 steps to go a mile, but is that relevant?

Experience

Experience in the area; I have tutored people in the above areas of mathematics for almost two years in AllExperts.com. I have tutored people here and there in mathematics since before I received a BS degree almost 25 years ago. In just two more years, I received an MS degree as well, but more on that later. I tutored at OSU in the math center for all six years I was there. Most students offering assistance were juniors, seniors, or graduate students. I was allowed to tutor as a freshman. I tutored at Mathnasium for well over a year. I worked at The Boeing Company for over 5 years. I received an MS degreee in Mathematics from Oregon State Univeristy. The classes I took were over 100 hours of upper division credits in mathematical courses such as calculus, statistics, probabilty, linear algrebra, powers, linear regression, matrices, and more. I graduated with honors in both my BS and MS degrees. Past/Present Clients: College Students at Oregon State University, various math people since college, over 7,500 people on the PC from the US and rest the world.

Publications
My master's paper was published in the OSU journal. The subject of it was Numerical Analysis used in shock waves and rarefaction fans. It dealt with discontinuities that arose over time. They were solved using the Leap Frog method. That method was used and improvements of it were shown. The improvements were by Enquist-Osher, Godunov, and Lax-Wendroff.

Education/Credentials
Master of Science at OSU with high honors in mathematics. Bachelor of Science at OSU with high honors in mathematical sciences. This degree involved mathematics, statistics, and computer science. I also took sophmore level physics and chemistry while I was attending college. On the side I took raquetball, but that's still not relevant.

Awards and Honors
I earned high honors in both my BS degree and MS degree from Oregon State. I was in near the top in most of my classes. In several classes in mathematics, I was first. In a class of over 100 students, I was always one of the first ones to complete the test. I graduated with well over 50 credits in upper division mathematics.

Past/Present Clients
My clients have been students at OSU, people nearby, friends with math questions, and several people every day on the PC, and you're probably make one more.

©2012 About.com, a part of The New York Times Company. All rights reserved.