“It is magnesium that controls the fate of potassium and calcium in the body. If magnesium is insufficient, potassium and calcium will be lost in the urine and calcium will be deposited in the soft tissues (kidneys, arteries, joints, brain, etc.). Magnesium and calcium complete for many of the body’s chemical pathways.”
https://drsircus.com/cardiovascular/calcium-magnesium-balance/
The article does not mention the role of Vitamin K2. It will assist the body in depositing excess calcium into bones and not collecting in organs. This system is also regulated along with sodium and Vitamin D as a critical cofactor for optimal absorbtion and distribution.