public long Value(POSItem item) { if(AmountOff > 0) { return AmountOff; } else { return (int)(item.Price * PercentageOff); } }