What is the version of the following sentence with correct punctuation?

For some patients the functional disorder is so severe or has lasted for so long that they wont regain their work ability in spite of the treatment
For some patients, the functional disorder is so severe or has lasted for so long that they won't regain their work ability, in spite of the treatment.