If this is a student question, please refer to the following text book for information;
Mechanical Metallurgy, 2nd Edition, by G. Dieter. Under Fatigue of Metals, page 437.
If this is for a specific engineering application, please post some additional information so we can provide an answer. For starters, you will need to know the following information;
1) material properties,
2) an S/N curve for the material to select an endurance limit and
3) stress range (stress max-stress min) in service to calculate cycles to failure.
The data from items 1-3 are used to plot a Goodman diagram, and using the equation for the Goodman line and the S/N curve you should be able to calculate the cycles to failure.