Skip to content

drmcoder/garment-cmt-cost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

garment-cmt-cost

Powered by Scan ERP License: MIT

CMT (Cut, Make, Trim) cost calculator for garment factories.

Calculates per-garment making cost from SAM × CPM × efficiency, supports trims and packaging, and compares CMT cost across major sourcing countries. Built and used in production by Scan ERP — the garment manufacturing ERP for CMT factories worldwide.

Two languages, same logic

Language Install Source
Node.js / TypeScript npm install garment-cmt-cost npm/
Python 3.7+ pip install garment-cmt-cost python/

Formula

Making cost = (SAM × CPM) / Efficiency
CMT cost    = Making cost + Trims + Packaging

Example: SAM 15, CPM $0.10 (Bangladesh), 50% efficiency, $0.30 trims, $0.20 packaging → Making = (15 × 0.10) / 0.5 = $3.00; CMT = $3.50

API

  • calculateCMTCost / calculate_cmt_cost
  • calculateCPM / calculate_cpm — derive CPM from monthly factory cost
  • calculateMakingCost / calculate_making_cost
  • estimateCMTByCountry / estimate_cmt_by_country — use country CPM default
  • compareByCountry / compare_by_country — cross-country comparison
  • addMargin / add_margin

Country CPM defaults (USD/min)

Country CPM Country CPM
Ethiopia $0.07 Sri Lanka $0.20
Myanmar $0.08 China $0.25
Nepal $0.09 Turkey $0.30
Bangladesh $0.10 Mexico $0.40
Pakistan $0.11 USA $1.00
Cambodia $0.12
Vietnam $0.16
India $0.18

Industry averages — use calculateCPM with your own salary + overhead data for accurate costing.

Try Scan ERP

This calculator is free. The full ERP that uses it daily for CMT quote generation — with live SMV data from your own factory floor — is at scanerp.pro.

License

MIT © Santosh Rijal / Scan ERP

Related

Related Packages — Scan ERP Garment Toolkit

Part of the Scan ERP open-source garment toolkit — production-tested utilities for CMT factory operations, all MIT licensed:

See the curated awesome-garment-erp list for the full Scan ERP ecosystem, or visit scanerp.pro for the production garment manufacturing ERP this toolkit powers.

About

CMT (Cut, Make, Trim) cost calculator with country comparison — Bangladesh, India, Vietnam, USA, etc. (npm + PyPI).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors