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

The result was a bloodbath that lasted three days and up to 30000 people were killed
The result was a bloodbath that lasted three days, and up to 30,000 people were killed.