Created
March 6, 2022 14:30
-
-
Save dylan-sessler/0eada2b168f121b29ff65e1f94b8cc39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
line: 9 - is surface area correct @evan?