The **compound interest** formula is used to determine the **future value** of an investment or loan when interest is calculated and added to the principal amount at regular intervals. It takes into account the effect of **compounding**, where interest is earned on both the initial principal and the accumulated interest over time.