Can someone help me with rearranging my code so that my list index is no longer out of range?
Update: The formula I\'m trying to apply is in the image below and what is s