When you invest in a CD, you agree to leave your money with the bank or credit union for a predetermined period, known as the term. During this time, your money earns interest at a fixed rate. At the end of the term, you can withdraw your initial investment plus the interest earned. However, if you withdraw your money before the term ends, you may have to pay a penalty.