Weight calculation includes the following steps: