changing to unix line endings
calculating the values with select boxes as well