images/contents.gifimages/index.gifimages/prev1.gifimages/next1.gif

How do I change the time to expiration?

The last example showed you how to change the symbol used to evaluate interest rates on the global level. The following example shows how to adjust the number of days to expiration on the window level. You can do this two ways: using the expiration adjust method, or using the date adjust method. This section provides examples of both of these methods. The first example demonstrates the expiration adjust method.

1. using the expiration adjust method

2. using the date adjust method