home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _68D79FF4C0C24FBCB2457B0E688A39ED < prev    next >
Text File  |  2003-03-07  |  19KB  |  296 lines

  1. Calculating Dates and Times
  2.  
  3. For calculation purposes, Quattro Pro stores all dates as serial integers beginning with 0 for December 30, 1899. The minimum, -109,571, equals January 1, 1600; the maximum, 474,816, equals December 31, 3199.
  4.  
  5. Quattro Pro stores times as decimal fractions; 0.000 represents 00:000:00, and 0.99999 represents 23:59:59. To format time expressions in your notebook, right-click the cell you want to format, click Cell Properties, then click Numeric Format.
  6.  
  7. For example, @TODAY returns the current date as an integer, and @NOW returns the current date with the current time added as a fraction.
  8.  
  9. Setting Holidays for Date & Time @Functions
  10.  
  11. Business date functions have three arguments to specify which dates are holidays: Saturday, Sunday, and Holidays. By default, Saturday and Sunday are holidays. Setting the argument Saturday to 1 specifies that Saturday is a business day; setting Sunday to 1 specifies that Sunday is a business day. Use the argument Holidays to specify holidays that do not fall on weekends (unless weekends are used as business days). You can set Holidays to cells containing holiday dates, the date of a single holiday, or 0 to specify no special holidays.
  12.  
  13. Entering Number Conversion @Functions
  14.  
  15. Input numbers that include non-numeric characters (such as hexadecimal or ASCII values) must be enclosed in quotation marks (for example, "1AF3C"). Numbers that exceed 14 digits, except decimal numbers, must also be enclosed in quotation marks.
  16.  
  17. For the 64-bit number conversion @functions, numbers must be in the following ranges for each base:
  18.  
  19.  
  20.  
  21. Base     Range
  22.  
  23. Signed decimal    -9223372036854775808 to +9223372036854775807
  24.  
  25. Unsigned decimal    0 to 18446744073709551615
  26.  
  27. Hexadecimal    0000000000000000 to FFFFFFFFFFFFFFFF
  28.  
  29. Octal    0000000000000000000000 to 1777777777777777777777
  30.  
  31.  
  32.  
  33. If a 64-bit number conversion @function results in a string value greater than 2 - 1, the @function returns ERR.
  34.  
  35. Entering Boolean @Functions
  36.  
  37. The shift @functions, @SHLB, @SHRB, @SHLH, and @SHRH, shift the bits in a number to the left or right. You can use the shift @functions to perform quick multiplication of integers. Each binary shift to the left is equivalent to multiplying the number by 2. Each binary shift to the right is equivalent to dividing the number by 2.
  38.  
  39.  
  40.  
  41. Binary    Decimal
  42.  
  43. 00011    3
  44.  
  45. 00110    6
  46.  
  47. 01100    12
  48.  
  49. 11000    24
  50.  
  51.  
  52.  
  53. As you shift bits off one end of a number, bits are added to the other end. Shift, however, is not equal to rotate. For example, the binary number 1001 shifted left is 0010. The same number rotated left is 0011. To perform this rotation, you can use a nested bit test @function to set the BitIn argument.
  54.  
  55. The addition @functions, @ADDB and @ADDH, return the sum of two numbers. The subtraction @functions, @SUBB and @SUBH, return the difference of two numbers.
  56.  
  57. The overflow @functions, @SHLBO, @SHRBO, @SHLHO, @SHRHO, @ADDBO, @ADDHO, @SUBBO, @SUBHO, return the overflow bit (either 0 or 1) of a shift, addition, or subtraction operation. For example, if you shift the binary number 1001 to the left and maintain four places, the result is 0010. The overflow bit, that is, the bit that has shifted into the fifth place not shown, is 1.
  58.  
  59. The AND @functions, @ANDB and @ANDH, combine the zeros of the input words. Any bit that is 0 in either number sets the corresponding output bit to 0. 
  60.  
  61. The OR @functions, @ORB and @ORH, combine the ones of the input words. Any bit that is 1 in either number sets the corresponding output bit to 1. 
  62.  
  63. The exclusive OR @functions, @XORB and @XORH, set an output bit to 1 when two corresponding input bits are not equal. 
  64.  
  65. The following table shows the results of AND, OR, and exclusive OR operations of Bit A and Bit B.
  66.  
  67.  
  68.  
  69. Bit A    Bit B    A AND B    A OR B        A XOR B
  70.  
  71. 0    0    0    0    0
  72.  
  73. 0    1    0    1    1
  74.  
  75. 1    0    0    1    1
  76.  
  77. 1    1    1    1    0
  78.  
  79.  
  80.  
  81. The invert @functions, @INVB and @INVH, invert individual bits of a number; that is, all bits with a value of 1 change to 0, and all bits with a value of 0 change to 1.
  82.  
  83. The bit manipulation @functions, @BITSB, @BITRB, @BITTB, @BITSH, @BITRH, and @BITTH, let you set or reset bits, or test the value of a bit in a number.
  84.  
  85. The concatenation @functions, @CATB, @CATH, @CATNB, and @CATNH, link numbers together in a chain. For example, the concatenation of the two binary numbers 11111 and 10101 is 1111110101.
  86.  
  87. The argument Bits defines the word size (in number of binary bits) for both input and output. The default for Bits is the number of bits in the largest input number. If you perform an operation with two numbers of different word size, the smaller number is left-padded with zeros. If Bits is less than the length of an input value, then the excess most significant digits are truncated. For Boolean @functions using hexadecimal numbers, note that each hexadecimal digit equals 4 bits.
  88.  
  89. The argument BitIn represents either the binary bit inserted during a shift, the carry bit for addition, or the borrow bit for subtraction; it can be either 0 (the default) or 1.
  90.  
  91. Tip
  92.  
  93. To add or subtract negative numbers with the Boolean @functions, use two's complement notation. Two's complement notation is a code used to give meaning to a binary string. The sign bit of two's complement notation is the leftmost bit of the word. A number is positive if the sign bit is 0 and negative if it is 1. Negative integers are converted to two's complement by inverting each bit (that is, changing each 1 to a 0 and each 0 to a 1), and then adding 1. 
  94.  
  95. Calendar Conventions
  96.  
  97. Financial @functions support four different calendar conventions to count the difference in days between two dates. The optional Calendar argument lets you specify which calendar convention to use.
  98.  
  99.  
  100.  
  101. Calendar    Description
  102.  
  103. 30/360    The 30/360 calendar convention assumes all months have 30 days and every year has 360 days. Using the 30/360 calendar, the number of years, months and days between two dates are counted separately. Then, the number of days between two dates is the sum of three quantities: the number of years times 360, the number of months time 30, and the number of days.
  104.  
  105. Actual/Actual    The Actual/Actual calendar convention considers the actual number of days between two dates and the actual number of days in the year. For example, February 28, 1994 and August 31, 1994 are 184 days apart. February 28, 1994 and March 1, 1994 are 1 day apart.
  106.  
  107. Actual/360    The Actual/360 calendar convention considers the actual number of days in each month, but assumes 360 days in the year.
  108.  
  109. Actual/365    The Actual/365 calendar convention considers the actual number of days in each month, but assumes 365 days in the year, thus making no provision for leap year.
  110.  
  111. Annuity @Function Arguments
  112.  
  113.  
  114.  
  115. Argument    Description
  116.  
  117. Adv    Number of cash flows (payments, deposits) made before the annuity begins.
  118.  
  119. Fv    Future value.
  120.  
  121. Int    Interest charged on the loan per period (not per year; many loans quote annual interest rates that must be divided by the number of payments per year).
  122.  
  123. Nper    Number of periods of the loan or investment (should be an integer greater than 0).
  124.  
  125. Odd    Number │ 0 that specifies the number of periods between the start of a loan and the first payment (for example, if the loan is made two and a half months before the first monthly payment is due, use 2.5)
  126.  
  127. Payment    Cash flow made each period.
  128.  
  129. Per    A specified loan or investment period, 1 through Nper.
  130.  
  131. Pmt    Payment.
  132.  
  133. Principal    Amount of money loaned or the initial deposit on an annuity that increases principal (like depositing $2,500 to open a savings account)
  134.  
  135. Pv    Present value. 
  136.  
  137. Rate    Interest rate (should be greater than -1).
  138.  
  139. Residual    Remaining principal and interest at the end of a loan that the annuity did not take care of
  140.  
  141. ResOff    Number of periods after the annuity ends before the residual must be paid; express it as a fraction of a period (for example, in a monthly loan, 1.5 means 1.5 months before the residual is due)
  142.  
  143. Simp    Specifies how the interest is calculated: 0 for compounded interest, 1 for simple interest
  144.  
  145. Term    The total number of cash flows (payments or deposits) to make
  146.  
  147. Type    0 if payments are at the end of each period, 1 if at the beginning. This optional argument lets you use financial @functions to compute either an ordinary annuity, where periodic payments are made at the end of each period, or an annuity due, where payments are made at the beginning of each period. Quattro Pro assumes that Type = 0 unless you indicate otherwise.
  148.  
  149.  
  150.  
  151. Non-integer values are allowed for Nper, and the @functions give results that are consistent with other spreadsheet programs, but which are actually not very meaningful. If you borrow money from a bank for, say, 15.2 months with interest paid monthly, giving Nper a value of 15.2 in the financial @functions will only be a rough indicator of what the bank will tell you to pay. In order to compute the figures the way the bank would, you have to consider two transactions, one for 15 months and one for 0.2 months.
  152.  
  153. The functions assume that there is no residual unless a nonzero value is specified for the optional argument Residual. When a residual is specified, the functions assume that it is paid along with the last payment. When it is not, a positive value should be specified for the optional argument ResOff. For example, if the residual is paid three months after the last monthly payment, ResOff = 3. Compound interest is used during any fractional component of ResOff unless Simp = 1.
  154.  
  155. Advance payments, specified by Adv, are made on or before the first day of the loan period. They are included in the total payment count. The functions assume zero advance payments unless a nonzero value is specified for the optional argument Odd.
  156.  
  157. Odd specifies the time period between the beginning of a loan (or issue of an annuity) and the date of the first periodic payment, and does not necessarily constitute exactly one normal payment period. For example, if a loan begins on March 19, 1993 and monthly payments are due the first of every month beginning April 5, 1993, the first payment period is 17 days long. Since the implied normal first payment period, March 5 to April 5, is 31 days long, Odd = 17/31.
  158.  
  159. Tip
  160.  
  161.   In the following @functions, as well as @NPV and @IRR, amounts with positive signs represent money received, and amounts with negative signs represent money paid: @FVAL, @IRATE, @IPAYMT, @NPER, @PAYMT, @PPAYMT, and @PVAL. This convention applies to arguments and to the results of the @functions. In 1-2-3-compatible @functions (such as @PV, @PMT, @FV, @RATE, @TERM, and @CTERM) the amounts are usually all positive regardless of which way the money changes hands.
  162.   
  163. Entering Cash Flow @Functions
  164.  
  165. Cash flow analysis is a process of listing a stream of cash gains and losses (positive and negative cash flows), modifying them using a percentage or percentages (discount rate(s)), and determining their future value, present value, or rate of growth (or decline; both are called the internal rate of return).
  166.  
  167. Unlike an annuity, this stream of cash flows does not always occur periodically, and does not have a fixed interest rate for each cash flow.
  168.  
  169. You can use cash flow functions to estimate the net present value of a cash flow stream, project the future value of the stream, compute the gains the stream is making as a percentage, or compute how the discount rates must change to achieve a specific future value.
  170.  
  171. For details on using cash flow @function arguments, choose one of the following topics:
  172.  
  173. Using the Discrate Argument
  174.  
  175. Using the Filter, Start, and End Arguments
  176.  
  177. Using the Flows Argument
  178.  
  179. Using the Odd and Periods Arguments
  180.  
  181. Using the Simp and PathDep Arguments
  182.  
  183. Using the Flows Argument
  184.  
  185. In Quattro Pro, a stream of cash flows is specified by a column (or row) of values. The Flows argument of a cash flow function is set to this selection. Positive values add cash to the stream; negative values subtract from it. For example, if your savings account had two deposits of $50, one withdrawal of $25, and one deposit of $75 (in that order), you could use A2..A5 or B2..E2 of the next figure to represent it in a cash flow function:
  186.  
  187. If the stream contains a series of equal cash flows, you can add an additional column (or row) to specify how many times a specified cash flow repeats. For example, you can replace A2..A5 of the previous figure with A2..B4 of the next figure:
  188.  
  189. The first column (or row) of the selection specifies how many times each cash flow occurs. For example, in the previous figure the value 2 (in A2) specifies that two cash flows of $50 occur in the stream, not one.
  190.  
  191. Tip
  192.  
  193.   Quattro Pro uses the size of the cash flow cells to determine whether you are specifying a column of cash flows or a row of cash flows. It assumes that selections with more than two rows contain cash flows in the second column; selections with more than two columns contain cash flows in the second row. In the case of a two-column, two-row selection, Quattro Pro assumes that the cash flows are in the second row.
  194.   
  195. Using the Filter, Start, and End Arguments
  196.  
  197. You can use the argument, Filter, Start, and End to make Quattro Pro automatically exclude cash flows that do not fall in a certain range, such as all deposits, or any withdrawals less than $20. Excluded cash flows are not included in the function calculations. Use Filter to specify the rules for exclusion, as shown in the next table.
  198.  
  199.  
  200.  
  201. Filter    Cash flows are excluded when
  202.  
  203. 0    No filtering (the default)
  204.  
  205. 1    Cash flow < Start
  206.  
  207. 2    Cash flow ú Start
  208.  
  209. 3    Cash flow > Start
  210.  
  211. 4    Cash flow │ Start
  212.  
  213. 5    Start < Cash flow < End
  214.  
  215. 6    Start ú Cash flow ú End
  216.  
  217.  
  218.  
  219. As shown, Start and End are used differently, depending on the setting of Filter. They always bind the cash flows in some way; Start and End could be a range of cash flows values to use (Filter set to 5) or an upper limit for values (Filter set to 1, Start set to the upper limit).
  220.  
  221. Using the Discrate Argument
  222.  
  223. The Discrate argument of a cash flow function specifies how the cash flows are discounted to achieve their future or net present value. It can be a single percentage (like 0.05 for 5%) that applies to all the cash flows, or a column (or row) of discount rates, one for each cash flow in the Flows cells (see the previous section). Positive discount rates decrease the cash flow; negative ones increase it. The next figure shows a stream of cash flows (in A2..B4) and their corresponding discount rates (in C2..C4).
  224.  
  225. The first two cash flows (specified by A2..B2) are discounted by 5% (as specified by C2). The third is discounted by -2.5% (an increase, as specified by the negative percentage in C3), and the final cash flow is discounted by 7.5% (as specified by C4).
  226.  
  227. Using the Simp and PathDep Arguments
  228.  
  229. You can use the Simp argument to specify how Quattro Pro applies discount rates to cash flows. The next table shows the discounting methods available.
  230.  
  231.  
  232.  
  233. Simp    Discounting
  234.  
  235. 0    Compounded
  236.  
  237. 1    Mixture of compounded and simple
  238.  
  239. 2    Simple
  240.  
  241.  
  242.  
  243. In addition to Simp, PathDep, which is used only when Discrate is a selection, specifies whether path-dependent discounting is used. When path-dependent discounting is used (PathDep is set to 1), the set of discount rates are chained together to determine future or net present value. If the order of discount rates changes, the future or net present value can be affected.
  244.  
  245. When path-dependent discounting is not used (PathDep is set to 0, the default), each cash flow is affected by its associated discount rate; other discount rates in Discrate do not affect it.
  246.  
  247. Using the Odd and Periods Arguments
  248.  
  249. By default, cash flow functions assume that each cash flow occurs periodically (every month, every year, and so on). The arguments Odd and Periods let you specify irregular periods. You normally use one or the other, so these arguments appear in the function descriptions as Odd|Periods.
  250.  
  251. If the length of time of the first period is odd, specify a number for Odd. For example, if a series of cash flows are monthly, and the first period is half a month long, set Odd to 0.5; if the first period is one and a half months, set Odd to 1.5.
  252.  
  253. If several cash flows are unevenly spaced, specify cells for Periods. Periods is a column (or row) of numbers that specify the duration of each cash flow in the Flows cells. Like Odd, each value in the cells is expressed as a fraction of the regular period. For example, the next figure shows a cash flow cells in B2..B4, and a Period selection in A2..A4.
  254.  
  255. The value 1 in A2 specifies that the first cash flow ($50) occurs at a regular period. You decide what this period is; it could be a week, a month, or a year. Assuming the regular period is a month, the value 3.5 (in A3) specifies that the second cash flow ($75) occurs three and a half months after the first. The final value, 2, specifies that two months elapse between the second cash flow and the third.
  256.  
  257. Like Flows, the Periods selection can have an additional column (or row) added to specify how many times a specified period length repeats. Periods does not have to be the same size as Flows. For example, in the next figure, the cash flow stream is A2..B5.
  258.  
  259. Periods is C2..C4, and specifies that the first cash flow is 0.56745 periods away, the next 11 cash flows occur one period apart, and the last four cash flows are 1.5 periods apart.
  260.  
  261. Tip
  262.  
  263.   In @FUTV, Odd specifies the length of the last period.
  264.   
  265. Bond @Function Arguments
  266.  
  267.  
  268.  
  269. Argument     Description
  270.  
  271. Settle    Settlement date for the trade
  272.  
  273. Maturity    Redemption date for the bond
  274.  
  275. Coupon    Annual coupon rate expressed as a decimal 
  276.  
  277. Issue    Issue date, that is, the date at which the bond is first offered for sale and begins accruing interest
  278.  
  279. FirstCpn    Date on which the first coupon period ends; if the first coupon period is longer or shorter than the other periods, the first coupon payment date is explicitly specified at issue; the size of the first coupon payment is linearly prorated in accordance with the length of the first coupon period
  280.  
  281. Redemption    Redemption value per par of 100
  282.  
  283. Freq    Frequency of coupon payments in the number of payments per year; the default is 2 (semiannual)
  284.  
  285. Calendar    Calendar to observe; the default is 0 (30/360)
  286.  
  287. Yield    Internal rate of return expressed as a decimal
  288.  
  289. Price    Quoted price of the bond assuming a par value of 100 and not including accrued interest
  290.  
  291. LastCpn    Date on which the last coupon period ends
  292.  
  293.  
  294.  
  295.  
  296.