Click or drag to resize

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
)

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: Decimal
Prorate coeficient.
See Also