ItemHelperCalculateProrateCoeficient Method |
Calculates the prorate coeficient.
Namespace:
Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:
Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax public static decimal CalculateProrateCoeficient(
DateTime startDate,
DateTime nextRenewalDate,
int renewalPeriod,
string renewalPeriodUnit
)
Public Shared Function CalculateProrateCoeficient (
startDate As DateTime,
nextRenewalDate As DateTime,
renewalPeriod As Integer,
renewalPeriodUnit As String
) As Decimal
public:
static Decimal CalculateProrateCoeficient(
DateTime startDate,
DateTime nextRenewalDate,
int renewalPeriod,
String^ renewalPeriodUnit
)
static member CalculateProrateCoeficient :
startDate : DateTime *
nextRenewalDate : DateTime *
renewalPeriod : int *
renewalPeriodUnit : string -> decimal
Parameters
- startDate
- Type: SystemDateTime
The start date. - nextRenewalDate
- Type: SystemDateTime
The next renewal date. - renewalPeriod
- Type: SystemInt32
The renewal period. - renewalPeriodUnit
- Type: SystemString
The renewal period unit.
Return Value
Type:
DecimalProrate coeficient.
See Also