Gave drop downs names so that the form returned values. Parsed the values to float to use in the calculation and made the function.
Took tests out of function files, moved to testing files