The test measures the amount of calcium in a 24-hour urine sample. Calcium is an essential mineral that plays an important role in many body functions, such as bone formation, muscle contraction, and nerve transmission. Most of the calcium in the body is stored in bones, while a small amount circulates in the blood and is excreted in urine.