How to make cmyk color in percentage with macro

With the normal RED GREEN YELLOW BLACK we can just divide and make the color if we need, for example in cmyk Red c m100 y 100 k, if we need 10% for the red, we can divide by 10 and get the color, How to get for mixing color shade for various color percentage, dividing with the value will take long time. Any macro available to make it easy instead of putting value and making it manually. Any suggestion or help. Thanks