Esempio n. 1
0
        public static decimal PaymentFromAmount(decimal amountMonthly, Int32 timesheetHours, Int32 workingHours, Int32 absenceHours)
        {
            Int32 totalHours = TotalHoursForPayment(timesheetHours, workingHours, absenceHours);

            decimal payment = DecOperations.MultiplyAndDivide(amountMonthly, totalHours, timesheetHours);

            return(payment);
        }
Esempio n. 2
0
        public static decimal FactorizeAmount(decimal amount, decimal factor)
        {
            decimal result = DecOperations.Multiply(amount, factor);

            return(result);
        }