How long to the nearest year, will it take an investment at a rate of 12.7% to double its value if the interest is compounded every 6 months?

I keep getting 568 years, I know this is not right. Could you please show me how to do this, do I take the log of both sides or just the log of 2? thank you!

I used the A(t)= P(1+r/m)^mt
2=1(1+.127/2)^2t
log2=log1(1+.127/2)^2t
now is where I don't know where to go.

2=1(1+.127/2)^2t , where t is half-years (2t is years)

2 = (1+.127/2)^2t
log2=log (1+.127/2)^2t
by the rules of logs ...
log2=2t log(1+.127/2)
2t = log2/log(1.0635)
2t = 11.26

So it would take about 11 1/4 years or
11 years and 3 months

To solve this problem, we can use the formula for compound interest:

A(t) = P(1 + r/n)^(n*t)

where:
A(t) is the final amount after time t,
P is the principal amount (initial investment),
r is the interest rate (in decimal form),
n is the number of times the interest is compounded per year,
t is the time in years.

In this case, the interest is compounded every 6 months, so n = 2. The interest rate is 12.7%, which is equivalent to 0.127 in decimal form. We need to find the time it takes for the investment to double, so A(t) = 2 and P = 1 (assuming the initial investment is 1 for simplicity).

Now, let's substitute these values into the compound interest formula:

2 = 1(1 + 0.127/2)^(2*t)

Next, simplify the equation:

2 = (1.0635)^(2*t)

To solve for t, we need to take the logarithm of both sides. However, it's important to note that we need to use a base consistent with the logarithm function on your calculator. The most common bases for logarithms are 10 (log) and e (ln). Let's use the natural logarithm (ln) for this problem:

ln(2) = ln((1.0635)^(2*t))

Now, we can use logarithm properties to bring the exponent down:

ln(2) = 2*t * ln(1.0635)

To isolate t, divide both sides of the equation by (2 * ln(1.0635)):

t = ln(2) / (2 * ln(1.0635))

Using a calculator, evaluate this expression to find the value of t. This will give you the number of years it takes for the investment to double, rounded to the nearest year. The result will be less than 568 years.