It should be long enough to get it out of your system but I kind of doubt that is what is causing your muscle pain. Myositis, or inflammation of the muscles, can occur with cholesterol lowering medication but it is usually an early occurance. Your doctor could check a muscle enzyme level or suggest a rheumatology consult if the pains continue.