Development of software that calculates the fabric consumption of garments in clothing factories