PaulH
Posts: 251
Joined: 11/3/2003 From: San Francisco, CA USA Status: offline
|
quote:
ORIGINAL: WK Choy I've been trying to figure out the Availability Index. quote:
(Total_Days_in_Window - Days_into_Window) / Total_Days_in_Window = Percent_Window_Used Looks like percent window unused to me Good catch! This is a botched description of the formula. What it actually does is: Days_into_Window / Total_Days_in_Window = Percent_Window_Used (Eric, can you edit the message above to limit further confusion?) As to AI being negative for wines where the drinking window is in the future, I originally had extra logic to set these to zero. When Eric implemented it here, he didn't have that extra logic. After looking at the results, we decided it was fine the way he did it. The more negative the AI is, the more you should stay away from the wine. With the extra logic you would have gotten the following from the AI... AI > 0.0 means within drinking window AI = 0.0 means not to drinking window yet AI < 0.0 means drinking too fast, slow down (for wines that are in the window) (if you drank something before the window the AI would still show zero) With the current logic it means the following AI >= 0.0 means within drinking window and wine available AI < 0.0 means drinking too fast, slow down or not to window yet I like the current calcuation better, as it goes more negative if you open something too soon; you are robbing from future availability. For purposes of historic documentation here is my original description of the Availability Index (note that the final two bits of logic ARE NOT in CellarTracker): Calcuation of Availability Index for Yield Management. Here is a simple example of yield management for 1994 Beringer Cab. Drink Soonest = 1997 Drink Latest = 2007 1/1/2007 - 1/1/1997 = 3652 days Today = 12/9/2003 Days used = 12/9/2003 - 1/1/1997 = 2503 days 2503 / 3652 = 0.658 Number Purchased = 12 Number should have consummed = 12 * 0.658 = 8.2 bottles Number in inventory = 9 Number consummed = 12 - 9 = 3 "Availability Index" = Should have consummed - Actually consummed = 8.2 - 3 = 5.2 (behind) Another example: 1990 Meyney Drink Soonest = 1996 Drink Latest = 2010 1/1/2010 - 1/1/1996 = 5114 days Today = 12/9/2003 Days used = 12/9/2003 - 1/1/1996 = 2869 days 2869 / 5114 = 0.561 Number Purchased = 14 Number should have consummed = 14 * 0.561 = 7.9 bottles Number in inventory = 3 Number consummed = 14 - 3 = 11 "Availability Index" = Should have consummed - Actually consummed = 7.9 - 11 = -3.1 (ahead) If "Days Used" is negative (haven't reached the start of the drinking window yet) the Availability Index is 0 (NOT IN CellarTracker) If "Days Used" is greater than the drinking window (fallen off the far end of the window), I add 100 to the calculated Availability Index to emphasize the need to drink up. (NOT IN Cellartracker. This isn't absolutely necessary, as once you exceed the drinking window, the number you should have consummed becomes greater than the number you had to begin with and the Availablity Index is always positive). For this system to work, you have to know how many you bought, how many you have, and you need a window with a start and end date.
< Message edited by PaulH -- 2/25/2004 7:12:45 AM >
|