garment-piece-rate
v1.0.2
Published
Piece-rate wage calculator for CMT garment factories. Formula: pieces × rate × skill multiplier + machine bonus + efficiency bonus − quality penalty. Built and used in production by Scan ERP.
Maintainers
Readme
garment-piece-rate
Piece-rate wage calculator for CMT garment factories. Built and used in production by Scan ERP.
Install
npm install garment-piece-rateUsage
const { calculatePieceRate } = require('garment-piece-rate');
const wage = calculatePieceRate({
pieces: 250,
ratePerPiece: 2.50,
skillLevel: 'expert',
qualityScore: 95,
efficiencyPercent: 110,
machineType: 'OVERLOCK_5THREAD',
});
console.log(wage);
// {
// gross: 906.95,
// breakdown: { base: 781.25, machineBonus: 39.06, efficiencyBonus: 78.13, ... }
// }Formula
adjustedRate = ratePerPiece × skillMultiplier
base = pieces × adjustedRate
machineBonus = base × machineComplexityBonus[machineType]
efficiencyBonus = base × 0.05 (if 100-109%) OR base × 0.10 (if 110%+)
qualityPenalty = base × (qualityThreshold − qualityScore) / 100 [if score below threshold]
gross = base + machineBonus + efficiencyBonus − qualityPenaltySkill Multipliers
| Level | Multiplier | |-------|-----------| | Novice | 0.75 | | Intermediate | 1.0 | | Expert | 1.25 |
Machine Complexity Bonuses
Higher-complexity machines get higher bonuses:
| Machine | Bonus | |---------|-------| | SINGLE_NEEDLE | 0% | | OVERLOCK_5THREAD | 5% | | FLATLOCK_2NEEDLE | 8% | | DOUBLE_NEEDLE | 10% | | KANSAI | 12% | | BUTTONHOLE_MACHINE | 15% | | BUTTON_ATTACH | 18% |
Quality Thresholds
Quality penalty applied if score below threshold:
| Machine | Threshold | |---------|-----------| | OVERLOCK_5THREAD | 85 | | SINGLE_NEEDLE | 90 | | FLATLOCK_2NEEDLE | 88 | | BUTTONHOLE_MACHINE | 95 | | Default | 88 |
Background
Piece-rate calculation is the core wage formula in CMT garment factories. Without automation, supervisor judgment causes 5-15% of wages to be disputed each month. This package implements the formula used by Scan ERP which has automated piece-rate for 115,370+ pieces in production.
Related Reading
- Piece Rate Calculation Software for Garment Factories
- Piece Rate Disputes in Garment Factory
- Incentive Pay for Sewing Operators
- SAM & SMV Formula in Garment Industry
License
MIT — Built by Santosh Rijal of Scan ERP
