コード例 #1
0
 public double CalculateOverhoursAmount(int workedMonth, double workedHours)
 {
     InputValidations.ValidateMonth(workedMonth);
     InputValidations.ValidateWorkedHours(workedHours);
     return(_monthsWorkingHours[workedMonth] < workedHours
         ? workedHours - _monthsWorkingHours[workedMonth]
         : 0);
 }
コード例 #2
0
 public double CalculateOverHoursGrossIncome(double overHoursAmount, double hourlyFee)
 {
     InputValidations.ValidateHourlyFee(hourlyFee);
     return(Math.Round(hourlyFee * overHoursAmount * Multipliers.OverHoursMultiplayer, 2));
 }