public static decimal PaymentFromAmount(decimal amountMonthly, Int32 timesheetHours, Int32 workingHours, Int32 absenceHours) { Int32 totalHours = TotalHoursForPayment(timesheetHours, workingHours, absenceHours); decimal payment = DecOperations.MultiplyAndDivide(totalHours, amountMonthly, timesheetHours); return(payment); }
public static decimal DecFactorResult(decimal valueDec, decimal factor) { return(DecOperations.MultiplyAndDivide(valueDec, factor, 100m)); }