Skip to content

Instantly share code, notes, and snippets.

@dylan-sessler
Created March 6, 2022 14:30
Show Gist options
  • Save dylan-sessler/0eada2b168f121b29ff65e1f94b8cc39 to your computer and use it in GitHub Desktop.
Save dylan-sessler/0eada2b168f121b29ff65e1f94b8cc39 to your computer and use it in GitHub Desktop.
function fixedCostImTooling(partGroup, materialProductionGroupParams) {
const NUMBER_OF_SETUPS = 2 // This is because there are two parts of a mold
const fixedPartCostLabor = (
materialProductionGroupParams.fixedPartReviewLabor +
materialProductionGroupParams.fixedPartPostProcessingLabor +
materialProductionGroupParams.fixedPartProgrammingLabor +
materialProductionGroupParams.productionToolDialInFixed +
materialProductionGroupParams.productionToolDialInVariable * partGroup.part.surfaceArea +
materialProductionGroupParams.perPartSetupLabor * NUMBER_OF_SETUPS
)
const fixedPartCostMachineTime = (
materialProductionGroupParams.perPartSetupLabor *
materialProductionGroupParams.machineIdleCostRatio *
NUMBER_OF_SETUPS
)
partGroup.labor += fixedPartCostLabor
partGroup.machineTime += fixedPartCostMachineTime
return partGroup
}
@dylan-sessler
Copy link
Author

line: 9 - is surface area correct @evan?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment