【OS_AnnualDividend】
[code]inputs: AnnualDividend( numeric ), ExpirDays( numeric ), InterestRate( numeric ) ;variables: var0( 0 ), var1( 1 / 365 ), var2( 0 ) ;
condition1 = AnnualDividend > 0 and ExpirDays > 0 and InterestRate > 0 ;
if condition1 then
begin
var0 = ExpirDays * var1 ;
var2 = AnnualDividend * var0 * ExpValue( -InterestRate * var0 ) ;
end ;
OS_AnnualDividend = var2 ;
[/code]
页:
[1]