Automation of dyeing machine Calculator