I don't understand the question. One does not "calculate" a demand factor. One calculates the total connected load, using the rules that Byran alluded to, and then one "applies" any demand factors that are permitted by that article. What is it that you are given, as source information, and what are you trying to accomplish?