Calculates the future value of savings based on the initial principal, interest rate, and investment period.