Calculates the number of days until expiration assuming the option expires on the third Friday of the month.

Namespace:  RightEdge.Common
Assembly:  Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public int CalculateDaysUntilExpiration(
	int month,
	int year
)
Visual Basic (Declaration)
Public Function CalculateDaysUntilExpiration ( _
	month As Integer, _
	year As Integer _
) As Integer
Visual C++
public:
int CalculateDaysUntilExpiration(
	int month, 
	int year
)

Parameters

month
Type: System..::.Int32
Month of the option expiration.
year
Type: System..::.Int32
Year of the option expiration.

Return Value

number of days, or -1 if the option has expired.

See Also