Beginnings of Sigma calculation logic
Sigma calc work
Sigma calculation working. Need to add save to database code and logging code. Also need to update sigma table to reflect all data calculated.