export function shouldRequireOwnerApproval(input: {
  estimatedCost: number;
  expectedDowntimeHours: number;
  costThreshold: number;
  downtimeThresholdHours: number;
}): boolean {
  return input.estimatedCost >= input.costThreshold || input.expectedDowntimeHours >= input.downtimeThresholdHours;
}

export function varianceUnits(forecastUnits: number, plannedUnits: number): number {
  return Math.round((plannedUnits - forecastUnits) * 100) / 100;
}

export function forecastUnitsWithMultiplier(lastWeekUnits: number, multiplier: number): number {
  return Math.round(lastWeekUnits * multiplier * 100) / 100;
}
