term Function [AX 2012]

Updated: October 2, 2009

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Calculates the number of periods over which an investment must run.


real term(
    real amount,
    real interest,
    real future_value)

Parameter

Description

amount

The amount of the periodic investment.

interest

The interest rate for each period.

future_value

The future value that is anticipated for the investment

The number of periods the investment must run for.

static void termExample(Args _args)
{
    print term(400,0.08,5000);  //returns the value '9.01'.
    print term(100,0.14,3000);  //returns the value '12.58'.
    pause;
}

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: