private Int32 CompoundContributionWithFactor(decimal compoundBasis, decimal compoundFactor)
        {
            decimal compoundResult = HealthOperations.DecFactorResult(compoundBasis, compoundFactor);

            Int32 resultPaymentValue = HealthOperations.IntRoundUp(compoundResult);

            return(resultPaymentValue);
        }
        // EmployeeContribution
        public decimal EmployeeContribution(MonthPeriod period, bool negSuppress, decimal generalBasis, decimal mandatoryBasis)
        {
            decimal compoundFactor = PeriodCompoundFactor(period);

            decimal calculatedBase = HealthOperations.DecSuppressNegative(negSuppress, generalBasis);

            Int32 resultGeneralValue = EmployeeContributionWithFactor(calculatedBase, mandatoryBasis, compoundFactor);

            return(resultGeneralValue);
        }
        public decimal BasisLegalCapBalance(MonthPeriod period, decimal accumulBasis, decimal actualBasis)
        {
            decimal maxHealthLimit = PeriodMaximumAnnualBasis(period);

            decimal calculatedBase = Math.Max(0m, actualBasis);

            decimal balancedResult = HealthOperations.MaxValueAlign(calculatedBase, accumulBasis, maxHealthLimit);

            decimal legalCapsBasis = Math.Max(0, decimal.Subtract(calculatedBase, balancedResult));

            return(legalCapsBasis);
        }
        public decimal BasisMandatoryBalance(MonthPeriod period, bool dutyMandatory, decimal valResult)
        {
            decimal minHealthLimit = PeriodMandatoryBasis(period, dutyMandatory);

            decimal calculatedBase = Math.Max(0m, valResult);

            decimal balancedResult = HealthOperations.MinValueAlign(calculatedBase, minHealthLimit);

            decimal mandatoryBasis = Math.Max(0, decimal.Subtract(balancedResult, calculatedBase));

            return(mandatoryBasis);
        }
        private Int32 EmployeeContributionWithFactor(decimal generalBasis, decimal mandatoryEmpee, decimal compoundFactor)
        {
            decimal decimalResult1 = HealthOperations.DecFactorResult(mandatoryEmpee, compoundFactor);

            decimal decimalResult2 = HealthOperations.DecFactorResult(generalBasis, compoundFactor);

            decimal decimalResult3 = DecOperations.Divide(decimalResult2, 3);

            Int32 resultPaymentValue = HealthOperations.IntRoundUp(decimal.Add(decimalResult1, decimalResult3));

            return(resultPaymentValue);
        }
Beispiel #6
0
        public decimal BasisLegalCapBalance(MonthPeriod period, decimal accumulBasis, decimal actualBasis)
        {
            bool negativeSuppress = true;

            decimal calculatedBase = SocialOperations.DecSuppressNegative(negativeSuppress, actualBasis);

            decimal maxHealthLimit = PeriodMaximumAnnualBasis(period);

            decimal balancedResult = HealthOperations.MaxValueAlign(calculatedBase, accumulBasis, maxHealthLimit);

            decimal legalCapsBasis = Math.Max(0, decimal.Subtract(calculatedBase, balancedResult));

            return(legalCapsBasis);
        }
Beispiel #7
0
        public ManagementApiClient(string baseUri, TimeSpan?defaultTimeout = null)
        {
            var client = new ApiClient(new Uri(baseUri), defaultTimeout);

            AgentVersions   = new AgentVersionOperations(client);
            AgentUploadInfo = new AgentUploadInfoOperations(client);
            Applications    = new ApplicationOperations(client);
            ApplicationLogs = new ApplicationLogOperations(client);
            ApplicationEnvironmentVariables = new ApplicationEnvironmentVariableOperations(client);
            ApplicationVersions             = new ApplicationVersionOperations(client);
            ApplicationUpload          = new ApplicationUploadInfoOperations(client);
            Devices                    = new DeviceOperations(client);
            DeviceConfiguration        = new DeviceConfigurationOperations(client);
            DeviceEnvironmentVariables = new DeviceEnvironmentVariableOperations(client);
            DeviceTypes                = new DeviceTypeOperations(client);
            Health = new HealthOperations(client);
        }
        public decimal BasisGeneralAdapted(MonthPeriod period, bool negSuppress, decimal valResult)
        {
            decimal adaptedResult = HealthOperations.DecSuppressNegative(negSuppress, valResult);

            return(adaptedResult);
        }