Thoughts on Chain Sag Calculation

My equation for force came from the spreadsheet… see here:

I copied and pasted the formula from excel to the python code and then did a search/replace to replace cells references with variable names. I think I got it right?

I did some math and it appears you get the same results…