Engineering tools are available only on desktop screens.
A real spring works between two positions: installed (preload) and working (max). Set both and this gives the force and stress at each, the clearance left to solid, and — the part that decides whether it survives — a fatigue safety factor cycling between the two loads. Wire strength is taken from the actual wire diameter, so thin wire is correctly stronger.
k = G·d⁴ / (8·D³·na)
F = k·δ
τ = KW · 8·F·D / (π·d³)
KW = (4C−1)/(4C−4) + 0.615/C
Sut = A / dm
τa = (τ₂−τ₁)/2
τm = (τ₂+τ₁)/2
Sse = Ssa/(1−Ssm/Ssu)
Ssu=0.67·Sut
nf = 1 / (τa/Sse + τm/Ssu)