calculating part