Could anyone explain to me how is total cholesterol numbers are calculated?

See below. The total cholesterol is made up of 3 parts; triglycerides, LDL (bad) cholesterol and HDL (good) cholesterol. The exact formula is total cholesterol equals HDL + LDL + (triglycerides / 5).