Duration of treatment for osteoporosis