if (option == 3) 
{
{
pmt = (percentage * earnings); 
cout << "pmt is "  << pmt << endl;
wr = (0.06 / 52.0);
cout << "wr is "  << wr << endl; 
n = (52 * actualage);
cout << "n is " << n << endl;
retirement = pmt * ((1 + wr)n - 1) / wr); 
cout << "You will have $" << retirement <<  " saved when you retire." << endl;
}

Thank you for trying with the code tags, but you don't need to tag each line separately. Put all of the code in between a single set of code tags.

You have: retirement = pmt * ((1 + wr)n - 1) / wr); Since the computer doesn't understand algebra (unless you program it to), you need to put a * in wherever it's needed. retirement = pmt*((1+w*r)*n - 1)/(w*r);