Calculates the number of days until expiration assuming the option expires.

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
Public Function CalculateDaysUntilExpiration ( 
	month As Integer,
	year As Integer
) As Integer
Visual C++
public:
int CalculateDaysUntilExpiration(
	int month, 
	int year
)
F#
member CalculateDaysUntilExpiration : 
        month : int * 
        year : int -> int 

Parameters

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

Return Value

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

See Also