home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / gw / autoda.exe / AUTODATE.TXT < prev   
Text File  |  1992-07-24  |  26KB  |  769 lines

  1. WORDPERFECT OFFICE FOR PC LANS:  AUTO-DATE SAMPLE FORMULAS
  2.  
  3. (Errata Sheet--June 1992)
  4.  
  5.  
  6. The Auto-Date feature is used to mark regularly occurring memos,
  7. appointments, and to-do items.  The purpose of this section is to
  8. give you examples of Auto-Date formulas that you can use or revise
  9. to fit your needs.  With each formula is an explanation of how the
  10. formula works.  This section is arranged by the common types of
  11. Auto-Dates.  The types and formulas included in this section are
  12. listed below.  If you need information on entering Auto-Date
  13. formulas, see Auto-Date in Calendar Reference.
  14.  
  15.  
  16. SECTIONS AND AUTO-DATE FORMULAS
  17.  
  18. Setting Fixed Dates
  19.   First and Third Monday of Each Month
  20.   Quarterly Meetings
  21.   1st and 15th of Every Month
  22.   Tuesday the 14th
  23.   First Wednesday of November
  24.   First Sunday of Each Month
  25.   First Monday, Second Friday, & Third Thursday of Specific Months
  26.  
  27. Excluding Dates
  28.   Every Wednesday Except the Second Wednesday of the Month
  29.   Third Friday of Each Month Except November
  30.   First Day of Specific Months Unless on Sundays
  31.   Every Monday and Wednesday from August 24th to October 31st
  32.     Excluding September 23rd, 1992
  33.   Every Tuesday of the Month Except the Last 14th Unless on a
  34.     Weekend
  35.  
  36. Setting Floating Dates
  37.   First Weekday of the Month
  38.   Second Weekday of the Month
  39.   Third Weekday of the Month
  40.   Fifth Weekday of the Month
  41.   Sixth Weekday of the Month
  42.   Last Weekday of the Month
  43.   First Weekday of Each Quarter
  44.   First Weekend on or after the 15th
  45.   The Monday Before the Last Wednesday of the Month
  46.  
  47. Setting Date Cycles
  48.   Once every 15 days Starting June 25, 1992
  49.   Every Wednesday Starting July 1, 1992
  50.   Every Sixth Thursday between March 7 and June 30, 1992
  51.   Once Every 45 Days Starting October 1, 1992
  52.   Work Schedule:  Work Five Days/Off Four Days
  53.      
  54. Setting Deadlines
  55.   120 Days From October 20, 1992
  56.  
  57. Setting Dates Within a Time Period
  58.   Every Second and Fourth Tuesday During Fiscal Year 1992/93
  59.   First and Third Friday in Each Month of the First Quarter
  60.   Every Twelve Days in 1992
  61.  
  62. Creating a Formula
  63.   Payday
  64. HOLIDAY CALENDAR
  65.  
  66. Included with Appointment Calendar is a calendar containing Auto-
  67. Dates for U.S. and Canadian holidays (HOLIDAY.CAL).  Retrieve
  68. HOLIDAY.CAL as you would any other calendar.  See Calendar Files in
  69. Calendar Reference.
  70.  
  71.  
  72. CONVENTIONS
  73.  
  74. To help clarify ambiguous meanings, the following terms are used to
  75. help explain the Auto-Date formulas.
  76.  
  77. Dates and Days
  78.      In the formulas below, dates are represented numerically (1,
  79.      2, 3, and so forth).  References to the sequence of days are
  80.      referred to in words (first, second, third, and so forth). 
  81.      Consider the following example:  The sixth weekday of the
  82.      month is generally the 8th.  The sixth refers to the sequence
  83.      of weekdays (there are five weekdays in a week).  The 8th
  84.      refers to the date (as in November 8).
  85.  
  86. Considerations
  87.  
  88.      Considerations are items you should think about when creating
  89.      a specific formula.  The considerations for a formula may
  90.      include such items as exceptions to the formula, dates that
  91.      should be included, and logical guidelines.
  92.  
  93. SETTING FIXED DATES
  94.  
  95.      Fixed dates are used to schedule an event that occurs on the
  96.      same day of each month.  For example, the second Saturday in
  97.      one month is the same as the second Saturday in any other
  98.      month.  It's always a Saturday.  The third weekday, however,
  99.      can be on any day Monday through Friday and is not always the
  100.      third day of the month.  Below are examples of fixed
  101.      Auto-Dates.
  102.  
  103.  
  104. First and Third Monday of Each Month
  105.      mon(1), mon(3)
  106.  
  107.      Considerations: 
  108.      *  Mark only the first and third Monday.
  109.  
  110.      If the formula consisted of only "mon", every Monday in the
  111.      calendar would be selected.  The (1) and (3) limit the
  112.      selection to the first and third Monday of each month.  If you
  113.      placed "last" in the parentheses, you would choose the last
  114.      Monday of the month.
  115.  
  116.  
  117. Quarterly Meetings
  118.      1(jan, apr, jul, oct)
  119.  
  120.      Considerations:
  121.      *  The four months that each begin a quarter of the year are
  122.         January, April, July, and October.
  123.  
  124.      *  Mark only the first day of the months indicated.
  125.  
  126.      The formula above has two parts.  The first part (in
  127.      parentheses) chooses certain months.  The second part marks
  128.      only the 1st of each month listed in the parentheses.  You can
  129.      change the formula by changing the months in the parentheses
  130.      or by changing the date selected.
  131.  
  132.  
  133. 1st and 15th of Every Month
  134.       1,15
  135.  
  136.      Because no specific month is indicated, Calendar marks the 1st
  137.      and 15th of every month in every year.
  138.  
  139.  
  140. Tuesday the 14th
  141.      tue 14
  142.  
  143.      Considerations:
  144.      *  Mark Tuesday only when it is the 14th day of the month.
  145.  
  146.      Two conditions are demanded in this formula:  The day must be
  147.      a Tuesday and the date must be the 14th.  The formula requires
  148.      both statements to be true before a day is marked.
  149.  
  150.  
  151. First Wednesday of November
  152.      wed(1) nov
  153.  
  154.      You can limit the marked days to a specific month.
  155.      
  156.  
  157. First Sunday of Each Month in 1992
  158.      sun(1) 1992
  159.  
  160.      You can use years to limit the day selected to a single year.
  161.  
  162.  
  163. First Monday, Second Friday, and Third Thursday of Specific Months
  164.      (mon(1),fri(2),thu(3)(feb,may,aug,nov)
  165.  
  166.      This formula is similar to that of "Quarterly Meetings" above. 
  167.      A structure such as this lets you choose multiple meeting days
  168.      in the same months.  You can also choose to mark certain dates
  169.      of each month, for example 1, 25, fri(last).
  170.  
  171.  
  172. EXCLUDING DATES
  173.  
  174. You may not want to schedule a date that would normally be marked
  175. by the formula.  The sample formulas below demonstrate different
  176. ways to exclude dates from a formula.
  177.  
  178. Every Wednesday Excluding the Second Wednesday of the Month
  179.      wed!wed(2)
  180.  
  181.      Considerations:
  182.      *  A day should not be marked if it is the second Wednesday of
  183.         the month.
  184.  
  185.      The most common way to exclude a date is with a "not"(!)
  186.      statement. In the formula above, the "not" statement is used
  187.      to exclude the second Wednesday of each month.
  188.  
  189.  
  190. Third Friday of Each Month Except November
  191.      fri(3)!nov
  192.  
  193.      The formula above chooses the third Friday of each month of
  194.      the year.  The "not" statement excludes any days in November.
  195.  
  196.  
  197. First Day of Specific Months Unless on Sundays
  198.      1(feb,may,aug,nov)&!sun
  199.  
  200.      Considerations:
  201.      *  If the 1st falls on a Sunday, don't mark any days.
  202.  
  203.      The formula above is a variation of Quarterly Meetings.  The
  204.      difference is that this formula excludes Sundays.  If you want
  205.      to mark a replacement date for Sunday the 1st, you can specify
  206.      a range of days.  See "The 14th Unless on a Weekend" below for
  207.      the sample formulas under "Setting Floating Dates" for
  208.      alternatives.
  209.  
  210.  
  211. Every Monday and Wednesday from August 24 to October 31, excluding
  212.   September 23, 1992
  213.      (mon,wed)aug24 1992:oct31 1992!sep23 1992
  214.  
  215.      This formula demonstrates how you can exclude a date from a
  216.      range.  The formula does not mark September 23, 1992.
  217.  
  218.  
  219. Every Tuesday of the Month Except the Last
  220.      tue(1),tue(2),tue(3),tue(last-1)
  221.  
  222.      Considerations:
  223.      *  If there are four Tuesdays in the month, do not mark the
  224.         fourth.
  225.  
  226.      *  If there are five Tuesdays in the month, mark the fourth
  227.         but do not mark the fifth.
  228.  
  229.      The formula above shows how you can exclude a date by making
  230.      sure it is not selected.  Every month contains four or five
  231.      Tuesdays.  The operator "tue(last-1)" means the same as either
  232.      "tue(4-1)" or "tue(5-1)", depending on the month.  If a month
  233.      has four Tuesdays, the "tue(last-1)" statement is equal to
  234.      "tue(3) and marks the third Tuesday.  If a month has five
  235.      Tuesdays, the "tue(last-1)" marks the fourth Tuesday.
  236.  
  237.  
  238. The 14th Unless on a Weekend
  239.      mon:fri on/before 14
  240.  
  241.      Considerations:
  242.      If the 14th falls on a weekend, mark the preceding Friday.
  243.  
  244.      The range in the formula above (mon:fri) excludes weekend
  245.      days.  The "on/before" operator marks the nearest replacement
  246.      date to the target date when the target date does not fall in
  247.      the range.  For example, in the formula above if the 14th
  248.      falls on a weekend, the first weekday before the 14th is
  249.      marked.  This type of construction is used frequently for
  250.      setting floating dates.
  251.  
  252.  
  253. SETTING FLOATING DATES
  254.  
  255. A floating date takes into account such things as ranges and the
  256. amount of weeks in a month.  A floating date is especially useful
  257. for scheduling weekday appointments.  For example, an appointment
  258. is scheduled for the 14th of every month.  If you can meet only on
  259. weekdays, then you won't meet at all when the 14th falls on a
  260. weekend.  If you set the meeting as a floating date, Calendar can
  261. move the appointment forward to Monday or back to Friday.
  262.  
  263. The first seven formulas below show how you can schedule a specific
  264. weekday, such as the first or second weekday, while avoiding
  265. weekends.  The remaining formulas show how you can use ranges and
  266. offset operators for other floating data applications.
  267.  
  268. First Weekday of the Month
  269.      mon:fri on/after 1
  270.  
  271.      Considerations:
  272.      *  The day for the schedule must fall on a weekday (Monday
  273.         through Friday).
  274.  
  275.      *  If the 1st of the month falls on a weekend, the first
  276.         weekday is Monday.
  277.  
  278.      To make sure the day marked is a weekday, include a range of
  279.      days--Monday through Friday--in the formula.
  280.  
  281.         mon:fri
  282.  
  283.      Next, provide for a substitute when the first of the month
  284.      falls on a weekend.  To provide an easy substitute, you can
  285.      specify that the day marked must be on or after the 1st and
  286.      fall in the Monday to Friday range.
  287.  
  288.         mon:fri on/after 1
  289.  
  290.  
  291. Second Weekday of the Month
  292.      (tue:fri on/after 2, mon 4)&!tues 5
  293.  
  294.      Considerations:
  295.      *  If the 2nd falls on a Tuesday to Friday, the second weekday
  296.         and the 2nd of the month fall on the same day.
  297.  
  298.      *  If the 2nd is on Saturday, the second weekday is Monday the
  299.         4th.
  300.      
  301.      *  If the 2nd is on Sunday, the second weekday is Tuesday the
  302.         4th.
  303.  
  304.      *  If the 2nd is on Monday, the second weekday is Tuesday the
  305.         3rd.
  306.  
  307.      To mark the second weekday, you should first determine when
  308.      the second weekday and second of the month coincide.  The best
  309.      range, therefore, is Tuesday through Friday.
  310.  
  311.         tue:fri
  312.  
  313.      When the 2nd doesn't fall within the range, the second weekday
  314.      comes after the 2nd day of the month.
  315.  
  316.         tue:fri on/after 2
  317.  
  318.      At this point, the formula marks the day within the range that
  319.      comes on or after the 2nd.  The only problem is that the
  320.      formula marks Tuesday the 5th instead of Monday the 4th
  321.      (second consideration).  To remedy the problem, include Monday
  322.      the 4th.
  323.  
  324.         tue:fri on/after 2,mon 4
  325.  
  326.      Then exclude Tuesday the 5th.
  327.  
  328.           (tue:fri on/after 2,mon 4)!tue 5
  329.  
  330.  
  331. Third Weekday of the Month
  332.      (wed:fri on/after 3,mon 5,tue 5)&!wed after 5
  333.  
  334.      Considerations:
  335.      *  If the 3rd falls on Wednesday to Friday, the third weekday
  336.         and the 3rd of the month fall on the same day.
  337.  
  338.      *  If the 3rd falls on a Saturday, the third weekday is Monday
  339.         the 5th.
  340.  
  341.      *  If the 3rd falls on a Sunday, the third weekday is Tuesday
  342.         the 5th.
  343.  
  344.      *  If the 3rd falls on a Monday or Tuesday, the third weekday
  345.         is on Wednesday the 4th or Wednesday the 5th.
  346.  
  347.      The first consideration shows that the third weekday and the
  348.      3rd of the month coincide on Wednesday through Friday.  That
  349.      is the range you should use for the formula.
  350.  
  351.         wed:fri
  352.  
  353.      The third weekday will always fall on or after the 3rd of the
  354.      month.
  355.  
  356.         wed:fri on/after 3
  357.  
  358.      At this point, there are two problems.  The formula marks
  359.      Wednesday the 7th instead of Monday the 5th and Wednesday the
  360.      6th instead of Tuesday the 5th (considerations 2, 3, and 4). 
  361.      To remedy the problems, include Monday the 5th and Tuesday the
  362.      5th.
  363.  
  364.         wed:fri on/after 3,mon 5,tue 5
  365.  
  366.      Then exclude Wednesday the 7th and Wednesday the 6th.
  367.  
  368.         (wed:fri on/after 3,mon 5,tue 5)&!wed after 5
  369.  
  370.      The parentheses keep the two parts of the formula separate.
  371.  
  372.  
  373. Fifth Weekday of the Month
  374.      mon:fri on/before 7
  375.  
  376.      Considerations:     
  377.      *  On Friday the 5th, the fifth weekday and the 5th of the
  378.         month fall on the same day.
  379.  
  380.      *  When the 5th falls on Thursday, the fifth weekday is on
  381.         Friday the 6th.
  382.  
  383.      *  When the 5th falls on Saturday through Wednesday, the 5th
  384.         weekday is on the 7th.
  385.  
  386.      The fifth weekday of the month is rarely on the 5th.  The 7th
  387.      is the most common day for the fifth weekday because Saturday
  388.      and Sunday usually separate the first weekday from the fifth. 
  389.      Since the fifth weekday and the 7th fall on the same day
  390.      Monday through Friday, Monday through Friday is the range.
  391.  
  392.         mon:fri
  393.  
  394.      The only days that the formula doesn't mark correctly are when
  395.      the 7th falls on the weekend.  On those days, the fifth
  396.      weekday comes before the 7th (first and second
  397.      considerations).
  398.  
  399.         mon:fri on/before 7
  400.  
  401.  
  402. Sixth Weekday of the Month
  403.      mon:fri on/after 8
  404.  
  405.      Considerations:
  406.      *  There are always two weekend days between the first weekday
  407.         and the sixth weekday.  Therefore the sixth weekday will
  408.         most commonly fall on the 8th.
  409.  
  410.      *  If the 8th falls on a Saturday or Sunday, the sixth weekday
  411.         is Monday the 10th or Monday the 11th.
  412.  
  413.      The 8th is the key date for finding the sixth weekday because
  414.      of the weekend between the first and the sixth weekdays (6
  415.      weekdays + 2 weekend days = 8 days). Therefore the range
  416.      encompasses Monday through Friday.
  417.  
  418.         mon:fri
  419.  
  420.      The sixth weekday will never fall before the 8th.  However, if
  421.      the 8th falls on a weekend, the sixth weekday comes after the
  422.      8th (second consideration).
  423.  
  424.         mon:fri on/after 8
  425.  
  426.  
  427. Last Weekday of the Month
  428.      mon:fri on/before last
  429.  
  430.      Considerations:
  431.      *  If the last day of the month falls on a Saturday or Sunday,
  432.         the last weekday of the month is the preceding Friday.
  433.  
  434.      The last weekday of the month is always on or before the last
  435.      day of the month.
  436.  
  437.  
  438. First Weekday of Each Quarter
  439.      (mon:fri on/after 1)&jan,apr,jul,oct
  440.  
  441.      Considerations:
  442.      *  The months that begin each quarter are January, April,
  443.         July, and October.
  444.  
  445.      *  The first weekday of a quarter is exactly like the first
  446.         weekday of any month.  See "First Weekday of the Month"
  447.         above.
  448.  
  449.      The "First Weekday of Each Quarter" formula is a combination
  450.      of two formulas.  The first formula marks the first weekday of
  451.      each month.
  452.  
  453.         mon:fri on/after 1
  454.  
  455.      The other formula marks the months that fall on every quarter
  456.      of the year.
  457.  
  458.         jan,apr,jul,oct
  459.  
  460.      Together they mark the first weekday of each quarter of the
  461.      year.
  462.  
  463.         (mon:fri on/after 1)&jan,apr,jul,oct
  464.  
  465.  
  466. First Weekend on or after the 15th
  467.      (14:21)(sat:sun)!sun 14,sat 21
  468.  
  469.      Considerations:
  470.      *  Mark both the Saturday and Sunday that follow the 15th.
  471.      
  472.      *  If the 15th falls on Sunday, mark Saturday 14th.
  473.  
  474.      *  If the 15th falls on a Monday, mark Sunday the 21st.
  475.  
  476.      The considerations above describe two ranges:  The dates
  477.      (14:21) and the weekend (sat:sun).  When you use the ranges
  478.      together, only the days that coincide with both ranges are
  479.      marked.
  480.  
  481.         (14:21)(sat:sun)
  482.  
  483.      At this point, the formula will mark Sunday the 14th and
  484.      Saturday the 21.  To prevent marking two weekends in the same
  485.      month, exclude those two days.
  486.  
  487.         (14:21)(sat:sun)!sun 14,sat 21
  488.  
  489.  
  490. The Monday Before the Last Wednesday of the Month.
  491.      wed(last)-2
  492.  
  493.      Considerations:
  494.      *  The last Monday of the month can come before or after the
  495.         last Wednesday of the month.
  496.  
  497.      If what you are scheduling is in preparation for the
  498.      Wednesday, scheduling the last Monday does not always work. 
  499.      In the formula above, the Monday defined can be either the
  500.      last Monday of the month or the Monday before the last Monday. 
  501.      The -2 offset operator ensures that the Monday marked precedes
  502.      the last Wednesday.
  503.  
  504.  
  505. SETTING DATE CYCLES
  506.  
  507. A date cycle marks dates at regular intervals (for example, one day
  508. marked in every 12 days).  To set a cycle in Calendar you need to
  509. use two operators:  "every" and "starting".  The operator "every"
  510. tells Calendar how much time to allow between marked dates.  The
  511. operator "starting" tells Calendar when to start marking the days. 
  512. The limit for the number of days allowed in a cycle is 31. 
  513. However, you can multiply cycles to create larger cycles.  See
  514. "Once Every 45 Days" below.
  515.  
  516.  
  517. Once Every 15 Days Starting June 25, 1992
  518.      every 15 starting june 25 1992
  519.  
  520.      This formula tells Calendar to mark every 15th day starting on
  521.      June 25, 1992.  The formula must include a starting date to
  522.      let Calendar know when to begin counting the days in the
  523.      cycle.
  524.  
  525.  
  526. Every Wednesday Starting July 25, 1992
  527.      every 7 starting jul 1 1992
  528.  
  529.      You can mark the same weekday by creating a cycle of seven
  530.      days.  The cycle above continues indefinitely.  If you want
  531.      the cycle to end after a period of time, try using a range:
  532.  
  533.         (wed) jul 1992:jun 1993
  534.  
  535.      (Include the parentheses around "wed" or the formulas will
  536.      mark every day in the range, not just Wednesdays.)
  537.  
  538.      
  539. Every Sixth Thursday between March 7 and June 30 1992
  540.      every 6 starting mar 7 1992 ending jun 30 1992 thu
  541.  
  542.      Considerations:
  543.      *  In a cycle of every six days, it takes six weeks for the
  544.         cycle to mark duplicate days.  For example, if a cycle of
  545.         six days starts on Thursday, it would take six weeks for
  546.         the sixth day to fall on a Thursday again.
  547.  
  548.      This formula uses a cycle and a range to mark every sixth
  549.      Thursday.  First, you want to mark every sixth day, beginning
  550.      on a Thursday.
  551.  
  552.         every 6 starting mar 7 1992
  553.  
  554.      Now, if you want the cycle to end after a certain amount of
  555.      time, include the ending date.
  556.  
  557.         every 6 starting mar 7 1992 ending jun 30 1992
  558.  
  559.      Now you must limit the range to Thursdays.
  560.  
  561.         every 6 starting mar 7 1992 ending jun 30 1992 thu
  562.  
  563.      The only time that the cycle and Thursday coincide is on every
  564.      sixth Thursday.
  565.  
  566.  
  567. Once Every 45 Days Starting October 1, 1992
  568.      (every 5 starting oct 1 1992)(every 9 starting oct 1 1992)
  569.  
  570.      Considerations:
  571.      *  A cycle definition cannot exceed 31 days.
  572.  
  573.      *  If two cycles of different lengths start at the same time,
  574.         they coincide at a multiple of the two lengths.  For
  575.         example, cycles of nine days and five days produce a cycle
  576.         of 45 days when used together.
  577.  
  578.      The two cycles above work together to mark one day every 45
  579.      days.  The formula works because the five-day cycle and the
  580.      nine-day cycle coincide once every 45 days.  Use the guidlines
  581.      below to multiply cycles:
  582.  
  583.      *  The days in each cycle should not be the same.  For
  584.         example, two nine-day cycles produce a cycle of every nine
  585.         days.
  586.  
  587.      *  The days in one cycle should not be divisible by the other. 
  588.         For example, a cycle of three days and a cycle of six days
  589.         will produce a cycle of six days.
  590.  
  591.      *  You can multiply as many cycles as you need.
  592.  
  593.  
  594. Work Schedule:  Work Five Days/Off Four Days
  595.  
  596.      *  Enter each line in the formula below as a separate Auto-
  597.         Date formula.
  598.  
  599.         every 9 starting jan 1 1992
  600.         every 9 starting jan 2 1992
  601.         every 9 starting jan 3 1992
  602.         every 9 starting jan 4 1992
  603.         every 9 starting jan 5 1992
  604.  
  605.      Considerations:
  606.      *  If you work five days and have four days off, the full
  607.         cycle is nine days.
  608.  
  609.      *  The cycle is too irregular to use a range.
  610.  
  611.      Parallel cycles can be used to set up more complex cycles. 
  612.      Each cycle by itself would mark one day every nine days, but
  613.      together they mark five consecutive days and leave the
  614.      following four days blank.
  615. SETTING DEADLINES
  616.  
  617. A deadline is a single date set a number of days from a given day. 
  618. You may find it easier to use the Move Days feature (1, 2) to move
  619. to the dealine date (see "Date" in Calendar Reference).  However,
  620. if you have a deadline period that doesn't change, you may consider
  621. using a formula similar to the one below and changing the date for
  622. each deadline period.
  623.  
  624.  
  625. 120 days from October 20, 1992
  626.      ((((oct 20 1992+30)+30)+30)+30)
  627.      
  628.      Considerations:
  629.      *  You cannot add more than 31 days to a date.
  630.      
  631.      *  You can add 30+30+30+30 to total 120.
  632.  
  633.      The maximum number of days you can add to a date is 31. 
  634.      However, you can add more days by nesting parentheses and
  635.      adding days to each nest.
  636.  
  637.  
  638. SETTING DATES WITHIN A TIME PERIOD
  639.  
  640. If your formula is not limited by a time period, it will continue
  641. indefinitely backward and forward in time.  Time periods help clean
  642. up your calendar by not showing Auto-Dates that have expired.
  643.  
  644. (It is a good idea to delete expired Auto-Dates.  See
  645. "Editing/Deleting Auto-Dates" under Auto-Date in Calendar
  646. Reference.)
  647.  
  648.  
  649. Every Second and Fourth Tuesday during Fiscal Year 1992/93
  650.      tue(2),tue(4)(aug 30 1992:aug 30 1993)
  651.  
  652.      The most common way of defining a time period for a formula is
  653.      to make a range.  In the formula above, Tuesdays are marked
  654.      only if they fall between August 30, 1992, and August 30,
  655.      1993.
  656.  
  657.  
  658. First and Third Friday in Each Month of the First Quarter
  659.      fri(1),fri(3)&jan 1:mar 31
  660.  
  661.      Considerations:
  662.      *  The months in the first quarter of the year are January,
  663.         February, and March.
  664.  
  665.      If you use a range to set a time period, you can leave out the
  666.      years and make the time period repeat annually.
  667.  
  668.  
  669. Every Twelve Days in 1992
  670.      every 12 starting jan 1 1992 ending dec 31 1992
  671.  
  672.      This formula uses the starting and ending operators to define
  673.      a time period.  When you put a cycle in a time period, you
  674.      need to use starting and ending years in the period dates to
  675.      make the formula work.
  676.  
  677.  
  678. CREATING A FORMULA
  679.  
  680. The purpose of this section is to help you understand the steps and
  681. logic for creating an Auto-Date formula.  The formula created in
  682. this section is primarily for marking a semi-monthly payday
  683. schedule.  The formula is then extended to exclude a payday that
  684. falls on Thanksgiving and to assign the correct date for the payday
  685. schedule.
  686.  
  687.      Considerations:
  688.  
  689.      *  Payday is twice a month:  The 15th and the last day of the
  690.         month.
  691.  
  692.      *  Payday are on weekdays (Monday through Friday).
  693.  
  694.      *  If the 15th or last day of the month falls on a weekend,
  695.         payday is changed to the preceding Friday.
  696.  
  697.      The first consideration tells you the dates of the formula: 15
  698.      and last.
  699.  
  700. 1.   Include the dates in the formula.
  701.  
  702.      15,last
  703.  
  704.      Now payday is scheduled for every 15th and last day of the
  705.      month.  However, payday must occur only on weekdays.  A range
  706.      that includes only weekdays will help solve your problem.
  707.  
  708. 2.   Add a range of weekdays to the formulas, as shown below.
  709.  
  710.      mon:fri 15, mon:fri last
  711.  
  712.      Now the formula will only mark the 15th and the last day of
  713.      the month if they fall on a weekday.  If either day falls on
  714.      a weekend, nothing is marked.  To make the formula mark the
  715.      preceding Friday, you need the "on/before" operator.
  716.  
  717. 3.   Place "on/before" operators before 15 and last.
  718.         
  719.      mon:fri on/before 15, mon:fri on/before last
  720.  
  721.      The formula now marks your payday as outlined in the
  722.      considerations.  Now add the following considerations:
  723.  
  724.      *  Thanksgiving is the fourth Thursday of November and is a
  725.         two-day holiday.
  726.  
  727.      *  When Thanksgiving falls on the 27th or 28th, the last day
  728.         of the month is Saturday or Sunday.  Therefore, payday
  729.         should be on Wednesday before Thanksgiving.
  730.  
  731.      Now you have two more considerations.  You need to exclude
  732.      Thanksgiving as a possible payday, and you need to include the
  733.      Wednesday that precedes Thanksgiving, but only when it is
  734.      applicable.
  735.  
  736. 4.   Add a statement to exclude the Thanksgiving holiday:
  737.  
  738.      mon:fri on/before 15,mon:fri on/before last & !(nov thu(4),nov
  739.      thu(4)+1)
  740.  
  741.      (The statement thu(4)+1 is used for the Friday following
  742.      Thanksgiving because the fourth Friday doesn't always follow
  743.      the fourth Thursday.
  744.  
  745.      Now the formula excludes Thanksgiving, but it does not provide
  746.      a substitute payday.  The new payday should fall on the
  747.      Wednesday preceding Thanksgiving, but only when Thanksgiving
  748.      is on the 27th or 28th.  That means the payday would occur on
  749.      Wednesday the 26th or 27th.
  750.  
  751. 5.   Include the substitute payday (, nov wed 26, nov wed 27) in
  752.      the formula.
  753.  
  754.      mon:fri on/before 15,mon:fri on/before last, nov wed 26, nov
  755.      wed 27 & !(nov thu(4), nov thu(4)+1)
  756.  
  757.      You could keep adding on to this formula to exclude any other
  758.      conflicts to the payday formula.
  759.  
  760.  
  761.               WordPerfect is a registered trademark
  762.                        All rights reserved
  763.  
  764.                      WordPerfect Corporation
  765.                        ERUSIOF31X1A--6/92
  766.                          74  -74  - 4 0
  767.  
  768. REVISED June 1992
  769.